# # Makefile.onemodule.include # # Include Makefile for single module compilation for project Borges # # (C) 2002 by Fabian Mandelbaum <fabman at mandrakesoft dot com> # Released under the GNU GPL # # Rev: 2002-12-30 # # Single module compilation. EXPERIMENTAL # Builds a flat.xml file with the module's root as its root. # This target does not generate a "real" 'flat' XML, but one with entities, # however, the compilation process takes care of entities. %.flat.xml: i18n entities $(if $(IMPORTS),$(wildcard $(ROOTDIR)/$(MODULESDIR)/$(IMPORTS)/$(LANG)/*)) @echo "**** Building $*.flat.xml ****"; @cp $(ROOTDIR)/$(MODULESDIR)/$(LANG)/$*.xml . @make $*.xmla @masterize-module.pl $*.xmla $*.top.xml @perl -pi -e "s/&/&/g" $*.top.xml @rm -f $*.xml $*.xmla @master2master.pl $*.top.xml > $*.flat.xml # Creates entities and other files needed for PSGML Master psgml-top.xml: $(DISTDIR)/backend/psgml-top.xml entities i18n @cp $< $@