From: Jeremy Kerr Date: Mon, 2 Apr 2007 04:03:06 +0000 (+1000) Subject: Add 'make dist' target X-Git-Tag: v0.0.1~36 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=f95c710a32afd514b7a1d5072bab0adf7323936b;hp=db8001f511f8e8d928aa82113431067f968f4966 Add 'make dist' target Add a make dist target to create a petitboot tarball. Signed-off-by: Jeremy Kerr --- 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