]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
build: add 'archive' target
authorPatrick McHardy <kaber@trash.net>
Tue, 6 Jul 2010 03:57:18 +0000 (05:57 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 6 Jul 2010 03:57:18 +0000 (05:57 +0200)
make archive creates a tar.bz2 from the HEAD version.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Makefile.rules.in

index 67c4ff6de8d9b7abb66ada13fcfa702ff01655f1..3abd48c8c6e75042a77b77d5ba4a7c95a581782d 100644 (file)
@@ -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))