From: Patrick McHardy Date: Tue, 6 Jul 2010 03:57:18 +0000 (+0200) Subject: build: add 'archive' target X-Git-Tag: v0.099~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=969482e3144911c71a9cb73019e086cc8adec991;p=thirdparty%2Fnftables.git build: add 'archive' target make archive creates a tar.bz2 from the HEAD version. Signed-off-by: Patrick McHardy --- diff --git a/Makefile.rules.in b/Makefile.rules.in index 67c4ff6d..3abd48c8 100644 --- a/Makefile.rules.in +++ b/Makefile.rules.in @@ -36,6 +36,10 @@ configure: configure.ac @echo -e " PDF\t\t$@" db2pdf -o $(SUBDIR) $< +archive: + git archive --prefix=nftables-@PACKAGE_VERSION@/ HEAD | \ + bzip2 -c > nftables-@PACKAGE_VERSION@.tar.bz2 + define program_template $(1)-obj := $$(patsubst %,$(SUBDIR)%,$$($(1)-obj)) $(1)-extra-clean-files := $$(patsubst %,$(SUBDIR)%,$$($(1)-extra-clean-files))