summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/jadetex/base/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/jadetex/base/Makefile')
-rw-r--r--Master/texmf-dist/doc/jadetex/base/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/jadetex/base/Makefile b/Master/texmf-dist/doc/jadetex/base/Makefile
new file mode 100644
index 00000000000..7a3ffdb68cd
--- /dev/null
+++ b/Master/texmf-dist/doc/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