DocBook

Text.

InstalaciĆ³n

sudo apt-get install xsltproc docbook-xsl docbook-defguide fop docbook-xsl-doc-pdf 

Procesamiento

STYLESHEETS_DIR
TIDYCMD
REFERENCE
MANUAL
DEVELOPERS

all: clean html pdf

html:
        xsltproc -o $(MANUAL).html $(STYLESHEETS_DIR)/xhtml/docbook.xsl $(MANUAL).xml
        xsltproc -o $(DEVELOPERS).html $(STYLESHEETS_DIR)/xhtml/docbook.xsl $(DEVELOPERS).xml
        xsltproc -o $(REFERENCE).html $(STYLESHEETS_DIR)/xhtml/docbook.xsl $(REFERENCE).xml

fo:
        xsltproc -o $(MANUAL).fo $(STYLESHEETS_DIR)/fo/docbook.xsl $(MANUAL).xml
        xsltproc -o $(DEVELOPERS).fo $(STYLESHEETS_DIR)/fo/docbook.xsl $(DEVELOPERS).xml
        xsltproc -o $(REFERENCE).fo $(STYLESHEETS_DIR)/fo/docbook.xsl $(REFERENCE).xml

pdf: fo
        fop -pdf $(MANUAL).pdf -fo $(MANUAL).fo
        fop -pdf $(DEVELOPERS).pdf -fo $(DEVELOPERS).fo
        fop -pdf $(REFERENCE).pdf -fo $(REFERENCE).fo

tidy: clean
        $(TIDYCMD) $(MANUAL).xml
        $(TIDYCMD) $(DEVELOPERS).xml

clean:
        rm -rf *.html *.fo *.pdf *.*~