#--------------------------------------------------------------- # Project : Mandrake Linux # Module : Borges # File : Makefile.include.in # Author : Camille Bégnis # Created On : Mon May 1 16:25:21 2001 # Copyright : Camille Bégnis camille@mandrakesoft.com, # MandrakeSoft under the GPL license #--------------------------------------------------------------- # This Makefile contains generic targets likely to be used anywhere XSLT=xsltproc LANGS=en fr es LANG=en ROOTDIR=/home/stew/rpm-rebuilder/RPM/BUILD/Borges-0.7.12/doc DISTDIR=/usr/share/Borges/ PATH=$(shell echo $$PATH):$(DISTDIR)/bin rootconf=$(ROOTDIR)/conf/repository.xml # Dir to store all outputs OUTPUTSDIR=Outputs TOP=master.top.xml # compilation server IP, robot name and user login servername=norman.mandrakesoft.com localserverip=195.168.2.5 serverip=195.68.114.35 robot=r2d2 serverlogin=peter AUTHOR=pp AUTHORS=tbn tbn tbn tbn tbn tbn TYPES=lproof ispell pproof tproof translate write MODULESDIR=modules MANUALSDIR=manuals MANUALS=Borges-doc Borges-Roadmap IMPORTS= OUTPUTS=/home/stew/rpm-rebuilder/RPM/BUILD/Borges-0.7.12/installdir/usr/share/Borges//backend/Makefile.DB IMAGES_FORMATS=eps png dia fig # a function that looks for param $(1) in file $(2) GET=$(shell [ -e $(2) ] && $(DISTDIR)/bin/confparse.pl $(1) $(2)) # a function that adds element $(1) with value $(2) file $(3) PUT=$(DISTDIR)/bin/confadd.pl # This one is used to add the element as first child instead of last ADD=$(DISTDIR)/bin/confadd.pl --position="first_child" # look for all source images images=$(strip $(foreach ext,$(IMAGES_FORMATS),$(wildcard $(ROOTDIR)/images/*.$(ext) $(ROOTDIR)/images/$(LANG)/*.$(ext)))) # look for the global entities files in entities/ global_ent=$(wildcard $(ROOTDIR)/entities/*.ent) $(wildcard $(ROOTDIR)/entities/$(LANG)/*.ent) # What's the encoding used for current language? ENCOD=$(call GET,'configuration/repository/languages/lang[text()="$(LANG)"]/@encoding',$(ROOTDIR)/conf/repository.xml) ENCODING=$(if $(ENCOD),$(ENCOD),ISO-8859-1) allmodules=$(strip $(shell find $(ROOTDIR)/$(MODULESDIR)/$(LANG)/ -name '*.xml' ! \( -name '*.html.xml' -o -name '*changes.xml' -o -name '*.db.xml' -o -name '*id.xml' -o -name '*ids.xml' \) ) $(foreach import,$(IMPORTS),$(wildcard $(ROOTDIR)/$(MODULESDIR)/$(import)/$(LANG)/*.db.xml))) output=tex FORCE=no export TEXINPUTS PATH LANG DISTDIR Makefile: $(ROOTDIR)/Makefile $(wildcard $(DISTDIR)/backend/reports/Makefile $(DISTDIR)/backend/Makefile.*) $(ROOTDIR)/conf/*.xml @echo "updating Makefiles...." @make -C $(ROOTDIR) # escapes ampersand (&) so that entities are not replaced when # the XML file is parsed %.xmla: %.xml @echo "Escaping XML in $<" @perl -p -e "s/&/&/g" $< > $@ clean: @echo "Cleaning up directory..." @for i in `cat .cvsignore | grep -v Makefile`; do rm -rf $$i; done # The toclean variable is defined in importing Makefiles to clean Makefiles specific targets. @rm -rf $(toclean) @echo "Done cleaning up." superclean: clean for i in `cat .cvsignore`; do rm -rf $$i; done rm -rf *~ # Used for debugging purposes debug: $(run) force: