3 SOURCE = to_fork_or_not_to_fork.xml
4 OUTPUT_STEM = to_fork_or_not_to_fork
6 CURRENT_DISTRO = $(shell test -e /etc/debian_version && echo "debian")
7 ifeq ($(CURRENT_DISTRO),debian)
8 NWDBXSL = /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl
10 NWDBXSL = /usr/share/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl
14 xsltproc -o "$(OUTPUT_STEM).html" "$(NWDBXSL)" "$(SOURCE)"
18 fop "$(OUTPUT_STEM).fo" "$(OUTPUT_STEM).pdf"
23 xpdf "$(OUTPUT_STEM).pdf"
26 xmllint --noout --noent "$(SOURCE)"
30 rm -rf "$(OUTPUT_STEM).html" "$(OUTPUT_STEM).fo" "$(OUTPUT_STEM).pdf"