summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2007-04-02 14:03:06 +1000
committerJeremy Kerr <jk@ozlabs.org>2007-04-02 14:03:06 +1000
commitf95c710a32afd514b7a1d5072bab0adf7323936b (patch)
tree25be918ecd6a6e076bf55cf3106d068dfa2203c7 /Makefile
parentdb8001f511f8e8d928aa82113431067f968f4966 (diff)
downloadtalos-petitboot-f95c710a32afd514b7a1d5072bab0adf7323936b.tar.gz
talos-petitboot-f95c710a32afd514b7a1d5072bab0adf7323936b.zip
Add 'make dist' target
Add a make dist target to create a petitboot tarball. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a9ae25c..64a8c46 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,6 @@
PREFIX?=/usr
+VERSION=0.0.1
+PACKAGE=petitboot
CC=gcc
INSTALL=install
TWIN_CFLAGS=$(shell pkg-config --cflags libtwin)
@@ -31,6 +33,18 @@ install: all
$(INSTALL) -t $(PREFIX)/share/petitboot/artwork/ \
$(foreach a,$(ARTWORK),artwork/$(a))
+dist: $(PACKAGE)-$(VERSION).tar.gz
+
+$(PACKAGE)-$(VERSION).tar.gz: $(PACKAGE)-$(VERSION)
+ tar czvf $@ $^
+
+$(PACKAGE)-$(VERSION): clean
+ mkdir $@ $@/devices
+ cp -a artwork $@
+ cp *.[ch] $@
+ cp -a devices/*.[ch] $@/devices/
+ cp Makefile $@
+
clean:
rm -f petitboot
rm -f udev-helper
OpenPOWER on IntegriCloud