diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2007-04-02 14:03:06 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2007-04-02 14:03:06 +1000 |
commit | f95c710a32afd514b7a1d5072bab0adf7323936b (patch) | |
tree | 25be918ecd6a6e076bf55cf3106d068dfa2203c7 /Makefile | |
parent | db8001f511f8e8d928aa82113431067f968f4966 (diff) | |
download | talos-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-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |