diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2012-03-10 00:46:36 +0100 |
---|---|---|
committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2012-03-10 00:46:36 +0100 |
commit | 82d43971fe0c61a2bd08a17781c6925d97a756b7 (patch) | |
tree | e08ddfb101b084632928ee6480f0aceb0bb73513 /Makefile | |
download | alpine-chroot-82d43971fe0c61a2bd08a17781c6925d97a756b7.tar.bz2 alpine-chroot-82d43971fe0c61a2bd08a17781c6925d97a756b7.tar.xz |
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
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 <fabian at affolter-engineering.ch> +# +# 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 <http://www.gnu.org/licenses/>. + +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 + + + |