From 969482e3144911c71a9cb73019e086cc8adec991 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Tue, 6 Jul 2010 05:57:18 +0200 Subject: build: add 'archive' target make archive creates a tar.bz2 from the HEAD version. Signed-off-by: Patrick McHardy --- Makefile.rules.in | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- cgit v1.2.3