From 08ffd40ba7677e266eb0c867ccd9d432c83bf44b Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Sun, 10 Oct 2010 19:53:49 +0200 Subject: [PATCH] build: add archive target 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 411f47b..30b4eba 100644 --- a/Makefile.rules.in +++ b/Makefile.rules.in @@ -95,6 +95,10 @@ $(1)-install: install_targets += $(1)-install endef +archive: + git archive --format=tar HEAD | \ + bzip2 >$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 + ifneq ($(SUBDIR),) include $(SUBDIR)/Makefile $(foreach prog,$(PROGRAMS),$(eval $(call program_template,$(prog))))