diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |