From 82d43971fe0c61a2bd08a17781c6925d97a756b7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 10 Mar 2012 00:46:36 +0100 Subject: Initial commit --- Makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8dc17c9 --- /dev/null +++ b/Makefile @@ -0,0 +1,48 @@ +# alpine-chroot - Setup a Alpine Linux installation in a chroot. +# Copyright (c) 2011- 2012 Fabian Affolter +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +NAME = alpine-chroot +FILES = alpine-chroot.sh +VERSION = 0 +RELEASE = 1 +TAG = $(NAME)-$(VERSION).$(RELEASE) +prefix = /usr + +install: + mkdir -p $(DESTDIR)/usr/bin/$(NAME) + install -Dp -m 0755 $(FILES) $(DESTDIR)/usr/bin/$(NAME) + +uninstall: + rm -rf /usr/bin/$(NAME) + +tag: + @git tag -a -f -m "Tag as $(TAG)" -f $(TAG) + @echo "Tagged as $(TAG)" + +archive: tag + @git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD > +$(NAME)-$(VERSION).tar + @bzip2 -f $(NAME)-$(VERSION).tar + @echo "$(NAME)-$(VERSION).tar.bz2 created" + @sha1sum $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).sha1sum +## @scp $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).sha1sum dev.alpinelinux.org:archive/$(NAME) + @echo "Everything done, files uploaded to alpinelinux.org." + +clean: + rm -f *~ *bz2 + + + -- cgit v1.2.3