blob: 8f81f6b6c40c08423ec6dafc132ee344f2b84bc0 (
plain)
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
|
include config.make
WIXROOT := ../../tools/wix-3.0
LIGHT := $(WIXROOT)/light
CANDLE := $(WIXROOT)/candle
FILELIST := ./filelist.pl
#
#
export XSD_VERSION
export XERCES_VERSION
export PRODUCT_CODE
export UPGRADE_CODE
export XSD_SERIES := $(word 1,$(subst ., ,$(XSD_VERSION))).$(word 2,$(subst ., ,$(XSD_VERSION)))
export XSD_DIST := ../xsd-i686-windows
export XERCES_DIST := ../../xerces-vc
#
#
LIGHT_FLAGS := -ext WixUIExtension -ext WixUtilExtension -cultures:en-us
SRC := xsd.wxs
GEN := xsd-include.wxs examples.wxs doc.wxs etc.wxs xerces-include.wxs \
xerces-src.wxs
#
#
xsd-$(XSD_SERIES).msi: $(SRC:.wxs=.wixobj) $(GEN:.wxs=.wixobj) license.rtf
$(LIGHT) $(LIGHT_FLAGS) -o $@ $(filter %.wixobj,$^)
xsd-include.wxs:
$(FILELIST) -out $@ -dir xsd -ref-id INCLUDE_XSD -comp-id include_xsd -prefix $(XSD_DIST)/libxsd
examples.wxs:
$(FILELIST) -out $@ -dir cxx -ref-id EXAMPLES_CXXDIR -comp-id examples -ignore makefile -prefix $(XSD_DIST)/examples
doc.wxs:
$(FILELIST) -out $@ -dir doc -ref-id DOCDIR -comp-id doc -ignore makefile -ignore xsd.1 -prefix $(XSD_DIST)
etc.wxs:
$(FILELIST) -out $@ -dir etc -ref-id ETCDIR -comp-id etc -prefix $(XSD_DIST)
xerces-include.wxs:
$(FILELIST) -out $@ -dir xercesc -ref-id INCLUDE_XERCESCDIR -comp-id include_xerces -prefix $(XERCES_DIST)/include
xerces-src.wxs:
$(FILELIST) -out $@ -dir xerces-c-$(XERCES_VERSION) -ref-id XERCESSRCDIR -comp-id src_xerces -prefix $(XERCES_DIST)
#
#
.PHONY: clean realclean
clean:
rm -f xsd-$(XSD_SERIES).msi $(SRC:.wxs=.wixobj) $(GEN:.wxs=.wixobj)
realclean: clean
rm -f $(GEN)
# Pattern rules
#
%.wixobj: %.wxs
$(CANDLE) -o $@ $<
|