ioq3quest/misc/nsis/Makefile

37 lines
653 B
Makefile
Raw Normal View History

ifndef VERSION
VERSION=1.36_SVN
endif
ifndef RELEASE
2008-04-15 14:19:03 +00:00
RELEASE=0
endif
ifndef ARCH
2010-03-19 08:59:22 +00:00
ARCH=x86
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
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
ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.$(ARCH).nsi
makensis ioquake3.$(ARCH).nsi
2008-04-15 14:19:03 +00:00
clean:
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