mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Add option to create archive of build product
This commit is contained in:
parent
838fcf45cb
commit
2b3c5492c7
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
@ -1209,10 +1209,16 @@ endif
|
||||||
@echo ""
|
@echo ""
|
||||||
ifneq ($(TARGETS),)
|
ifneq ($(TARGETS),)
|
||||||
ifndef DEBUG_MAKEFILE
|
ifndef DEBUG_MAKEFILE
|
||||||
@$(MAKE) $(TARGETS) V=$(V)
|
@$(MAKE) $(TARGETS) $(B).zip V=$(V)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
$(B).zip: $(TARGETS)
|
||||||
|
ifdef ARCHIVE
|
||||||
|
@rm -f $@
|
||||||
|
@(cd $(B) && zip -r9 ../../$@ $(NAKED_TARGETS))
|
||||||
|
endif
|
||||||
|
|
||||||
makedirs:
|
makedirs:
|
||||||
@if [ ! -d $(BUILD_DIR) ];then $(MKDIR) $(BUILD_DIR);fi
|
@if [ ! -d $(BUILD_DIR) ];then $(MKDIR) $(BUILD_DIR);fi
|
||||||
@if [ ! -d $(B) ];then $(MKDIR) $(B);fi
|
@if [ ! -d $(B) ];then $(MKDIR) $(B);fi
|
||||||
|
|
Loading…
Reference in a new issue