warzone2100/pkg/nsis/Makefile.am

18 lines
641 B
Makefile
Raw Normal View History

INSTALLERFILE=$(PACKAGE)-$(VERSION).exe
UPDATERFILE=$(PACKAGE)-$(VERSION).update.exe
CLEANFILES=$(INSTALLERFILE)
if INSTALLER
all: $(INSTALLERFILE)
endif
data:
$(MAKE) $(AM_MAKEFLAGS) -C ../../data/ data
$(INSTALLERFILE): warzone2100.nsi ../../src/warzone2100.exe data
$(MAKENSIS) -DPACKAGE="$(PACKAGE)" -DPACKAGE_NAME="$(PACKAGE_NAME)" -DPACKAGE_VERSION="$(PACKAGE_VERSION)" -DPACKAGE_BUGREPORT="$(PACKAGE_BUGREPORT)" -DVERSIONNUM="$(INSTALLER_VERSION)" -DEXTDIR="$(INSTALLER_EXTDIR)" $<
$(UPDATERFILE): warzone2100.update.nsi
$(MAKENSIS) -DVERSION="$(VERSION)" -DVERSIONNUM="$(INSTALLER_VERSION)" -DEXTDIR="$(INSTALLER_EXTDIR)" $<