BUILD_MOD ?=
ifndef ZIP
- ifneq ($(shell which zip),)
+ ifneq ($(shell which zip 2>/dev/null),)
ZIP := zip -9
endif
- ifneq ($(shell which 7z),)
+ ifneq ($(shell which 7z 2>/dev/null),)
ZIP := 7z a -tzip -mx=9
endif
- ifneq ($(shell which 7za),)
+ ifneq ($(shell which 7za 2>/dev/null),)
ZIP := 7za a -tzip -mx=9
endif
ifndef ZIP
- $(warning "No zip in ($(PATH))")
+ $(warning "No zip / 7z / 7za in ($(PATH))")
ZIP := : zip_not_found
endif
endif
$(eval DAT=$(PROG)-$(VER).dat)
$(eval LNO=$(PROG)-$(VER).lno)
@ echo "http://xonotic.org" > $(TXT)
- @ ln -f $(PROGS_OUT)/$(PROG).dat $(DAT)
- @ ln -f $(PROGS_OUT)/$(PROG).lno $(LNO)
+ @ cp -f $(PROGS_OUT)/$(PROG).dat $(DAT)
+ @ cp -f $(PROGS_OUT)/$(PROG).lno $(LNO)
@ $(RM) *.pk3
$(ZIP) $(PK3) $(TXT) $(DAT) $(LNO)
@ $(RM) $(TXT) $(DAT) $(LNO)