[quake3-commits] r2151 - trunk/misc/nsis

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Aug 26 11:21:03 EDT 2011


Author: ztm
Date: 2011-08-26 11:21:03 -0400 (Fri, 26 Aug 2011)
New Revision: 2151

Modified:
   trunk/misc/nsis/Makefile
Log:
Somewhat fixed NSIS installer for win64, probably still installs with x86 programs.

Modified: trunk/misc/nsis/Makefile
===================================================================
--- trunk/misc/nsis/Makefile	2011-08-26 15:15:56 UTC (rev 2150)
+++ trunk/misc/nsis/Makefile	2011-08-26 15:21:03 UTC (rev 2151)
@@ -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
+



More information about the quake3-commits mailing list