mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +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 ""
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue