############################################################################### # Makefile for RHLP docs project # Created by: Tammy Fox # Last edited by: Tommy Reynolds # WARNING: need passivetex 1.24 for pdf generation to work # License: GPL # Copyright 2003 Tammy Fox, Red Hat, Inc. # Copyright 2005 Tommy Reynolds, MegaCoder.com ############################################################################### DOCCMN = docs-common XSLPDF = ../$(DOCCMN)/xsl/main-pdf.xsl XSLHTML = ../$(DOCCMN)/xsl/main-html.xsl XSLHTMLNOCHUNKS = ../$(DOCCMN)/xsl/main-html-nochunks.xsl LANG = en DOCNAME = securing-filesystems-$(LANG) XMLFILE = $(DOCNAME).xml XMLEXTRAFILES = ###################################################### #include ../docs-common/Makefile.common ###################################################### html: xmlto html -x $(XSLHTML) -o $(DOCNAME) $(XMLFILE) mkdir -p $(DOCNAME)/stylesheet-images cp ../$(DOCCMN)/stylesheet-images/*.png $(DOCNAME)/stylesheet-images cp ../$(DOCCMN)/css/fedora.css $(DOCNAME) html-nochunks $(DOCNAME).html:: ${XMLFILE} ${XMLEXTRAFILES} xmlto html-nochunks -x $(XSLHTMLNOCHUNKS) $(XMLFILE) mkdir -p stylesheet-images cp ../$(DOCCMN)/stylesheet-images/*.png stylesheet-images cp ../$(DOCCMN)/css/fedora.css . tarball ${DOCNAME}.tar.gz:: ${DOCNAME}/index.html tar -zcf ${DOCNAME}.tar.gz ${DOCNAME} pdf-%: xmlto pdf -x $(XSLPDF) $(XMLFILE) ###################################################### clean: rm -rfv *.html *.xhtml *.pdf *.tex $(DOCNAME)