## $Id: Makefile,v 1.6 2003/10/25 13:50:49 ss Exp $ #include ../common.mk ## locale specific params: LANG = ja ENCODING = EUC-JP ## these should be defined in $topdir/$(common_makefile): ## you should edit these params in accordance with your environment: topdir = $(HOME)/doc/translation/fluxdocs system_xsldir = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh XML_CATALOG_FILES = $(topdir)/xml/catalog.xml xsltdir = $(topdir)/xslt fodir = $(topdir)/fo html_style = $(xsltdir)/main.xsl fo_style = $(fodir)/main.xsl fo_config = $(fodir)/userconfig.xml XSLT = xsltproc XSLT_DEBUG = #--verbose #XSLT_FLAGS = $(XSLT_DEBUG) --xinclude --catalogs XSLT_FLAGS = $(XSLT_DEBUG) --xinclude XSLT_PARAMS = XLINT = xmllint XLINT_DEBUG = --debug LINT_FLAGS = $(XLINT_DEBUG) --valid --noout --xinclude FOP = fop FOP_DEBUG = -d FOP_CONFIG = $(fodir)/userconfig.xml FOP_FLAGS = $(FOP_DEBUG) -c $(FOP_CONFIG) SRC = main.xml \ beyond-hello-world.xml \ conclusions.xml \ introduction.xml \ sgml-emacs.xml \ text-processing.xml \ word-processor.xml src0 = $(firstword $(SRC)) multi-html-output = top.html html-output = $(subst xml,html,$(src0)) fo-output = $(subst xml,fo,$(src0)) pdf-output = $(subst xml,pdf,$(src0)) ps-output = $(subst xml,ps,$(src0)) all: html lint: $(SRC) @for f in $^; do $(LINT) $$f 2> /tmp/$$f; done html: $(html-output) $(html-output): $(html-style) $(SRC) $(XSLT) $(XSLT_FLAGS) $(XSLT_PARAMS) -o $@ $< $(src0) multi-html: $(multi-html-output) $(multi-html-output): $(multi-html-style) $(SRC) $(XSLT) $(XSLT_FLAGS) $(XSLT_PARAMS) -o $@ $< $(src0) fo: $(fo-output) $(fo-output): $(fo-style) $(SRC) $(XSLT) $(XSLT_FLAGS) $(XSLT_PARAMS) -o $@ $< $(src0) pdf: $(pdf-output) $(pdf-output): $(fo-output) $(FOP) $(FOP_FLAGS) -fo $< -pdf $@ ps: $(ps-output) $(ps-output): $(fo-output) $(FOP) $(FOP_FLAGS) -fo $< -ps $@ clean: -rm -f $(html-output) $(fo-output) $(pdf-output) $(ps-output) .PHONEY: all lint html multi-html fo pdf ps clean