summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
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