From 177f621faa3ab1556a954a9f0017b364476a0d7f Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 27 Mar 2013 14:35:11 +0000 Subject: Add option to create archive of build product --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 718e061d..e631f37b 100644 --- a/Makefile +++ b/Makefile @@ -1158,10 +1158,16 @@ endif @echo "" ifneq ($(TARGETS),) ifndef DEBUG_MAKEFILE - @$(MAKE) $(TARGETS) V=$(V) + @$(MAKE) $(TARGETS) $(B).zip V=$(V) endif endif +$(B).zip: $(TARGETS) +ifdef ARCHIVE + rm -f $@ + (cd $(B) && zip -r9 ../../$@ $(NAKED_TARGETS)) +endif + makedirs: @if [ ! -d $(BUILD_DIR) ];then $(MKDIR) $(BUILD_DIR);fi @if [ ! -d $(B) ];then $(MKDIR) $(B);fi -- cgit