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 $@ $<