Somewhat fixed NSIS installer for win64, probably still installs with x86 programs.

This commit is contained in:
Zack Middleton 2011-08-26 15:21:03 +00:00
parent 6d97d5c628
commit dd9230de04

View file

@ -1,16 +1,36 @@
VERSION=1.35_SVN
ifndef VERSION
VERSION=1.36_SVN
endif
ifndef RELEASE
RELEASE=0
endif
ifndef ARCH
ARCH=x86
endif
ifndef INSTALLDIR
INSTALLDIR=.
endif
ifeq ($(ARCH),x64)
SDLDLL=SDL64.dll
else
SDLDLL=SDL.dll
endif
all: ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe
ioquake3.nsi: ioquake3.nsi.in
sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/x86/$(ARCH)/g' < $< > $@
ioquake3.$(ARCH).nsi: ioquake3.nsi.in
sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/x86/$(ARCH)/;s/SDL.dll/$(SDLDLL)/g' < $< > $@
ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.nsi
makensis ioquake3.nsi
ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.$(ARCH).nsi
makensis ioquake3.$(ARCH).nsi
clean:
rm -rf *.exe ioquake3.nsi
rm -rf *.exe ioquake3.$(ARCH).nsi
install:
mkdir -p $(INSTALLDIR)
mv ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe $(INSTALLDIR)
.PHONY: all clean