summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/otherformats/jadetex/base/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-24 00:31:38 +0000
committerKarl Berry <karl@freefriends.org>2009-05-24 00:31:38 +0000
commit3db8854079e5f66bff8e115d3e53b74a9e6b1b94 (patch)
treec76f77b61118c210746b2b9a513369908249ae7e /Master/texmf-dist/doc/otherformats/jadetex/base/Makefile
parent631b5bbb9b2878fe0c658883d594124839413456 (diff)
move doc for lesser-used formats to subdirs
git-svn-id: svn://tug.org/texlive/trunk@13440 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/otherformats/jadetex/base/Makefile')
-rw-r--r--Master/texmf-dist/doc/otherformats/jadetex/base/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/otherformats/jadetex/base/Makefile b/Master/texmf-dist/doc/otherformats/jadetex/base/Makefile
new file mode 100644
index 00000000000..7a3ffdb68cd
--- /dev/null
+++ b/Master/texmf-dist/doc/otherformats/jadetex/base/Makefile
@@ -0,0 +1,45 @@
+MAX_TEX_RECURSION=4
+JADE=openjade
+JADETEX=jadetex
+PDFJADETEX=pdfjadetex
+XMLDECL=/usr/share/sgml/xml.dcl
+
+all: releasenotes.pdf releasenotes.html releasenotes.ps
+
+%.tex: %.xml %.dsl
+ $(JADE) -v -t tex -V tex-backend -d $*.dsl#print $(XMLDECL) $*.xml
+
+%.pdf: %.tex
+ $(PDFJADETEX) $<
+ if ! cmp $(shell basename $< .tex).aux prior.aux 2>/dev/null && \
+ expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \
+ cp -pf $(shell basename $< .tex).aux prior.aux ; \
+ rm -f $@ ; \
+ $(MAKE) $@ ; \
+ fi
+ rm -f prior.aux
+
+%.dvi: %.tex
+ $(JADETEX) $<
+ if ! cmp $(shell basename $< .tex).aux prior.aux 2>/dev/null && \
+ expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \
+ cp -pf $(shell basename $< .tex).aux prior.aux ; \
+ rm -f $@ ; \
+ $(MAKE) $@ ; \
+ fi
+ rm -f prior.aux
+
+%.ps: %.pdf
+ acroread -toPostScript -pairs $< $@
+
+%.html: %.xml %.dsl
+ $(JADE) -v -t sgml -i html -V nochunks -V rootchunk -V "%root-filename%=$*" -V "%html-ext%=.html" -d $*.dsl#html $(XMLDECL) $*.xml
+
+%.1: %.xml
+ xmlto man -x /usr/share/xmlto/xsl/db2man/docbook.xsl $*.xml
+
+clean:
+ -rm -f *.out *.aux *.log *.dvi *.tex
+
+realclean: clean
+ -rm -f *.html *.pdf *.ps