File: Makefile.WiX

package info (click to toggle)
ganglia 3.6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 6,484 kB
  • ctags: 3,880
  • sloc: ansic: 27,874; sh: 11,052; python: 6,695; makefile: 565; perl: 366; php: 126; xml: 28
file content (66 lines) | stat: -rwxr-xr-x 1,381 bytes parent folder | download | duplicates (3)
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
66

#
# 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