From f95c710a32afd514b7a1d5072bab0adf7323936b Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 2 Apr 2007 14:03:06 +1000 Subject: [PATCH 1/1] Add 'make dist' target Add a make dist target to create a petitboot tarball. Signed-off-by: Jeremy Kerr --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- 2.39.2