ifndef ZIP
ifneq ($(shell which zip 2>/dev/null),)
- ZIP := zip -9
+ ZIP := zip -9m
endif
ifneq ($(shell which 7z 2>/dev/null),)
- ZIP := 7z a -tzip -mx=9
+ ZIP := 7z a -tzip -mx=9 -sdel
endif
ifneq ($(shell which 7za 2>/dev/null),)
- ZIP := 7za a -tzip -mx=9
+ ZIP := 7za a -tzip -mx=9 -sdel
endif
ifndef ZIP
$(warning "No zip / 7z / 7za in ($(PATH))")
$(RM) $(WORKDIR)/*.qc
$(RM) $(WORKDIR)/*.txt
$(RM) $(WORKDIR)/qccversion.*
+ $(RM) $(WORKDIR)/csprogs-*
$(RM) csprogs-*.pk3
.PHONY: qc
$(eval TXT=$(PROG)-$(VER).txt)
$(eval DAT=$(PROG)-$(VER).dat)
$(eval LNO=$(PROG)-$(VER).lno)
- @ echo "http://xonotic.org" > $(TXT)
- @ cp -f $(PROGS_OUT)/$(PROG).dat $(DAT)
- @ cp -f $(PROGS_OUT)/$(PROG).lno $(LNO)
- @ $(RM) csprogs-*.pk3
- $(ZIP) $(PK3) $(TXT) $(DAT) $(LNO)
- @ $(RM) $(TXT) $(DAT) $(LNO)
+ @ echo "http://xonotic.org" > $(WORKDIR)/$(TXT)
+ @ cp -f $(PROGS_OUT)/$(PROG).dat $(WORKDIR)/$(DAT)
+ @ cp -f $(PROGS_OUT)/$(PROG).lno $(WORKDIR)/$(LNO)
+ @ $(RM) $(PROG)-*.pk3
+ cd $(WORKDIR) && $(ZIP) $(CURDIR)/$(PK3) $(TXT) $(DAT) $(LNO)
QCCVERSION := $(shell cd lib && $(QCC) --version)
QCCVERSIONFILE := $(WORKDIR)/qccversion.$(shell echo ${QCCVERSION} | git hash-object --stdin)