Makefile: Use a configurable variable for the zip program.

This commit is contained in:
Sei Lisa 2017-09-02 00:10:26 +02:00 committed by Sei-Lisa
parent 1f92469556
commit 7d1afc7823

View file

@ -15,6 +15,10 @@ PREPROC_KIND=mcpp
# If the preprocessor is mcpp and it is in your path, you can leave it as is.
PREPROC_PATH=mcpp
# Full path to the zip program (zip.exe for Windows). Depends on where you
# have downloaded it. If it is in your path you don't need to change it.
ZIP=zip
# Name of the zipped file to generate for SL
SLZIP=AVsitter2.zip
@ -73,14 +77,14 @@ opensim: $(OPENSIM)
$(SLZIP): $(OPTIMIZED) $(UNOPTIMIZED)
$(PYTHON) build-aux.py rm $@
zip $@ $(OPTIMIZED) $(UNOPTIMIZED)
$(ZIP) $@ $(OPTIMIZED) $(UNOPTIMIZED)
%.lslo: %.lsl
$(PYTHON) $(OPTIMIZER) -H -O addstrings,shrinknames,-extendedglobalexpr -p $(PREPROC_KIND) --precmd=$(PREPROC_PATH) $< -o $@
$(OSZIP): $(OPENSIM)
$(PYTHON) build-aux.py rm $@
zip $@ $(OPENSIM)
$(ZIP) $@ $(OPENSIM)
%.oss: %.lsl
$(PYTHON) build-aux.py oss-process $< > $@