Makefile 993 Bytes
Newer Older
1
PNAME=bobdude
springob's avatar
springob committed
2
VERSION=102-0
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36

WIXDIR=/C/Program Files (x86)/WixEdit/wix-3.0.5419.0
DIFXAPP = "C:\Program Files (x86)\Windows Installer XML v3.6\bin\difxapp_$(PLATFORM).wixlib"

CANDLE="$(WIXDIR)/candle.exe"
LIGHT="$(WIXDIR)/light.exe"

WIX_EXTENSIONS = -ext WixDifxappExtension

SRC = 

MODS = $(SRC:%.wxs=%_$(PLATFORM).msm)

#    candleArgs: "<projectfile>" -out "<projectname>.wixobj" <extensions> -dPlatform=x64 -arch x64
#    lightArgs: "<projectname>.wixobj" -out "<projectname>.msi" <extensions> "C:\Program Files (x86)\Windows Installer XML v3.6\bin\difxapp_x64.wixlib"


all: $(PNAME)_$(VERSION)_$(PLATFORM).msi


%_$(PLATFORM).wixobj: %.wxs
	$(CANDLE) $< -out $@ $(WIX_EXTENSIONS) -dPlatform=$(PLATFORM) -arch $(PLATFORM)

%.msm: %.wixobj
	$(LIGHT) $< -out $@

bobdude_$(VERSION)_$(PLATFORM).msi: bobdude_$(PLATFORM).wixobj $(MODS)
	$(LIGHT) $< -out $@ $(WIX_EXTENSIONS) $(DIFXAPP)

clean:
	@rm -rf *.msi *.wixobj *.msm *.wixpdb


.PHONY: clean all