This commit is contained in:
Hans-Joachim Lankenau 2001-12-12 11:38:13 +00:00
parent 61773d3b59
commit ed59aaf6ea

View file

@ -2,9 +2,9 @@
# #
# $RCSfile: rules.mk,v $ # $RCSfile: rules.mk,v $
# #
# $Revision: 1.37 $ # $Revision: 1.38 $
# #
# last change: $Author: hjs $ $Date: 2001-10-19 13:03:25 $ # last change: $Author: hjs $ $Date: 2001-12-12 12:38:13 $
# #
# The Contents of this file are made available subject to the terms of # The Contents of this file are made available subject to the terms of
# either of the following licenses # either of the following licenses
@ -675,20 +675,18 @@ $(MISC)$/%.hid : %.src
# make *.xml descriptions available in $(MISC) # make *.xml descriptions available in $(MISC)
$(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml : %.xml $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml : %.xml
+$(COPY) $< $@ +$(COPY) $< $@
+-$(RM) $(MISC)$/$(<:b).mk >& $(NULLDEV)
@+dmake $(MFLAGS) $(CALLMACROS)
@+echo back from nowhere...
#generate typelists from xml # dummy rule to make sure xml file is in place when used in settings.mk
$(MISC)$/%.mk : $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml $(MISC)$/%.mk : $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml
+xml2cmp -types $(MISC)$/$*.mk $*.xml +$(TOUCH) $@
+echo XML2MK_FILES += $(@:b) >> $@
#generate descriptions from xml #generate descriptions from xml
$(MISC)$/%$($(WINVERSIONNAMES)_MAJOR)_description.cxx : $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR)_description.cxx : $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml
+xml2cmp -func $(MISC)$/$*$($(WINVERSIONNAMES)_MAJOR)_description.cxx $< +xml2cmp -func $(MISC)$/$*$($(WINVERSIONNAMES)_MAJOR)_description.cxx $<
#generate private rdb #generate private rdb
$(BIN)$/%.rdb: $(COMPRDB) $(MISC)$/%.mk $(BIN)$/%.rdb: $(COMPRDB) $(MISC)$/%$($(WINVERSIONNAMES)_MAJOR).xml
+rdbmaker -BUCR -O$(BIN)$/$*.rdb @$(mktmp $(foreach,i,$($(@:b)_XML2CMPTYPES) -T$i ) $(COMPRDB)) +rdbmaker -BUCR -O$(BIN)$/$*.rdb @$(mktmp $(foreach,i,$($(@:b)_XML2CMPTYPES) -T$i ) $(COMPRDB))
#strip dos lineends #strip dos lineends