mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
Somewhat fixed NSIS installer for win64, probably still installs with x86 programs.
This commit is contained in:
parent
6d97d5c628
commit
dd9230de04
1 changed files with 26 additions and 6 deletions
|
@ -1,16 +1,36 @@
|
||||||
VERSION=1.35_SVN
|
ifndef VERSION
|
||||||
|
VERSION=1.36_SVN
|
||||||
|
endif
|
||||||
|
ifndef RELEASE
|
||||||
RELEASE=0
|
RELEASE=0
|
||||||
|
endif
|
||||||
|
ifndef ARCH
|
||||||
ARCH=x86
|
ARCH=x86
|
||||||
|
endif
|
||||||
|
ifndef INSTALLDIR
|
||||||
|
INSTALLDIR=.
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ARCH),x64)
|
||||||
|
SDLDLL=SDL64.dll
|
||||||
|
else
|
||||||
|
SDLDLL=SDL.dll
|
||||||
|
endif
|
||||||
|
|
||||||
all: ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe
|
all: ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe
|
||||||
|
|
||||||
ioquake3.nsi: ioquake3.nsi.in
|
ioquake3.$(ARCH).nsi: ioquake3.nsi.in
|
||||||
sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/x86/$(ARCH)/g' < $< > $@
|
sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/x86/$(ARCH)/;s/SDL.dll/$(SDLDLL)/g' < $< > $@
|
||||||
|
|
||||||
ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.nsi
|
ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.$(ARCH).nsi
|
||||||
makensis ioquake3.nsi
|
makensis ioquake3.$(ARCH).nsi
|
||||||
|
|
||||||
clean:
|
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
|
.PHONY: all clean
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue