Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > 6c1629ca18f6adf273e73d0f5069fa8c > files > 311

Borges-doc-0.7.12-1mdk.noarch.rpm

#
# 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/&amp;/&/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 $< $@