2011-08-26 15:21:03 +00:00
|
|
|
ifndef VERSION
|
|
|
|
VERSION=1.36_SVN
|
|
|
|
endif
|
|
|
|
ifndef RELEASE
|
2008-04-15 14:19:03 +00:00
|
|
|
RELEASE=0
|
2011-08-26 15:21:03 +00:00
|
|
|
endif
|
|
|
|
ifndef ARCH
|
2010-03-19 08:59:22 +00:00
|
|
|
ARCH=x86
|
2011-08-26 15:21:03 +00:00
|
|
|
endif
|
|
|
|
ifndef INSTALLDIR
|
|
|
|
INSTALLDIR=.
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(ARCH),x64)
|
|
|
|
SDLDLL=SDL64.dll
|
|
|
|
else
|
|
|
|
SDLDLL=SDL.dll
|
|
|
|
endif
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2010-03-19 08:59:22 +00:00
|
|
|
all: ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2011-08-26 15:21:03 +00:00
|
|
|
ioquake3.$(ARCH).nsi: ioquake3.nsi.in
|
|
|
|
sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/x86/$(ARCH)/;s/SDL.dll/$(SDLDLL)/g' < $< > $@
|
2008-04-15 14:19:03 +00:00
|
|
|
|
2011-08-26 15:21:03 +00:00
|
|
|
ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.$(ARCH).nsi
|
|
|
|
makensis ioquake3.$(ARCH).nsi
|
2008-04-15 14:19:03 +00:00
|
|
|
|
|
|
|
clean:
|
2011-08-26 15:21:03 +00:00
|
|
|
rm -rf *.exe ioquake3.$(ARCH).nsi
|
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p $(INSTALLDIR)
|
|
|
|
mv ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe $(INSTALLDIR)
|
2008-04-15 14:19:03 +00:00
|
|
|
|
|
|
|
.PHONY: all clean
|
2011-08-26 15:21:03 +00:00
|
|
|
|