-
Notifications
You must be signed in to change notification settings - Fork 246
/
Makefile.WiX
executable file
·66 lines (49 loc) · 1.35 KB
/
Makefile.WiX
1
2
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# Use this file for building a Windows (MSI) package
# after compiling the binaries in Cygwin
#
# The build machine must have WiX 3.0 installed
#
# Use the command:
#
# make -f Makefile.WiX
#
# and gmond.msi will be produced in the project root dir
#
MSI=gmond
SRCS=WiX/ganglia-gmond.wxs
WIX_IND=
#WIX_INC=-Ic:\\WiX\\Templates
OBJS=$(SRCS:.wxs=.wixobj)
CANDLE=candle.exe
LIGHT=light.exe
srcdir?=
VPATH = $(srcdir).:.
RM ?= del
# Uncomment this if you have a custom action script:
#CUST_VBS=WiX/gen_config.vbs
# Uncomment these two lines if you want to try Python, although
# more stuff probably needs to be bundled in to make it work:
#PYTHON_DEP= /bin/cygcrypto-0.9.8.dll /bin/cygcurl-4.dll /bin/cygssh2-1.dll \
# /bin/cygssl-0.9.8.dll /bin/cygz.dll /bin/libpython2.5.dll
DEPFILES= gmond/gmond.exe \
WiX/gmond.conf \
/bin/cygwin1.dll \
/bin/cygrunsrv.exe \
$(PYTHON_DEP) $(CUST_VBS)
VERSION ?= unknown
MSIVERSION ?= 0.0.0.0
WFLAGS= -dVERSION="$(VERSION)" -dMSIVERSION="$(MSIVERSION)" -dsrcdir="$(srcdir)" $(WIX_INC) -ext WixUtilExtension
.SUFFIXES: .wxs .wixobj
all: $(MSI).msi
$(MSI).msi: $(OBJS) $(DEPFILES)
$(LIGHT) -nologo $(WFLAGS) -out $@ $(OBJS)
.wxs.wixobj:
$(CANDLE) -nologo $(WFLAGS) -out $@ $^
clean:
$(RM) $(MSI).msi $(OBJS)
install: $(MSI).msi
$(RM) install.log
msiexec -i $(MSI).msi -l*v install.log
uninstall:
msiexec -x $(MSI).msi