/[ddp]/manuals/trunk/sgml-howto/Makefile.sub
ViewVC logotype

Contents of /manuals/trunk/sgml-howto/Makefile.sub

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1050 - (show annotations) (download)
Tue Nov 21 10:05:46 2000 UTC (12 years, 5 months ago) by bortz
File size: 2857 byte(s)
Other jadetex trick
1 MAX_TEX_RECURSION=4
2 # potato or above
3 XML_DECL=/usr/lib/sgml/declaration/xml.dcl
4 # slink or above
5 #XML_DECL=/usr/lib/sgml/declaration/xml.decl
6 HTML_SS=/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl
7 PRINT_SS=/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl
8 #INCLUDES=../programs.ent ../files.ent ../custom.dtd
9
10 all: howto
11
12 html: howto.html
13
14 howto: howto.ps howto.txt howto.html
15
16 howto.db: ../howto.db $(INCLUDES) ../condition.pl
17 perl ../condition.pl $(VERSION) ../howto.db > $@
18 #cp $(INCLUDES) .
19
20 howto.ja.db: ../howto.ja.db $(INCLUDES) ../condition.pl
21 perl ../condition.pl $(VERSION) $< > $@
22
23 howto.tex: howto.db ../print.dsl
24 jade -V tex-backend -t tex $(JADEFLAGS) \
25 -d ../print.dsl \
26 $(XML_DECL) howto.db
27
28 howto.latex: howto.db ../latex-ss/latex/docbook.dsl
29 jade -t sgml $(JADEFLAGS) \
30 -d ../latex-ss/latex/docbook.dsl \
31 $(XML_DECL) howto.db
32
33 %.dvi: %.tex
34 # Trick from Adam Di Carlo <adam@onshore.com> to recurse jadetex
35 # "just enough".
36 -cp -pf prior.aux pprior.aux
37 -cp -pf $(shell basename $< .tex).aux prior.aux
38 jadetex $<
39 if ! cmp $(shell basename $< .tex).aux prior.aux && \
40 ! cmp $(shell basename $< .tex).aux pprior.aux && \
41 expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \
42 rm -f $@ ;\
43 $(MAKE) $@ ;\
44 fi
45 rm -f prior.aux pprior.aux
46
47 # %.dvi: %.tex
48 # Other possible solution by Rafael Laboissiere <rafael@icp.inpg.fr>
49 # %.dvi: %.tex
50 # $(JADETEX) $<
51 # if ! cmp $(shell basename $< .tex).aux prior.aux 2>/dev/null && \
52 # expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \
53 # cp -pf $(shell basename $< .tex).aux prior.aux ; \
54 # rm -f $@ ; \
55 # $(MAKE) $@ ; \
56 # fi
57 # rm -f prior.aux
58
59 %.ps: %.dvi
60 dvips -f $< > $@
61
62 howto.html: howto.db ../html.dsl
63 jade -t sgml $(JADEFLAGS) \
64 -d ../html.dsl \
65 $(XML_DECL) howto.db
66
67 howto.ja.html: howto.ja.db ../html.dsl
68 jade -t sgml $(JADEFLAGS) \
69 -d ../html.ja.dsl \
70 $(XML_DECL) howto.ja.db
71
72
73 # TODO: to be seriously tested, for instance internal links
74 # are stupidly rendered by Lynx.
75 # And w3m does not display the URLs, we have to rely on the example
76 # script htmldump :-(
77 howto.txt: howto.db ../html.dsl
78 jade -t sgml -V nochunks -V textonly $(JADEFLAGS) \
79 -d ../html.dsl \
80 $(XML_DECL) $< > dump.html
81 # -hiddenlinks=ignore could be useful if I knew how to define
82 # a hidden link!
83 lynx -underscore -hiddenlinks=ignore -force_html -dump dump.html > $@
84 # w3m does tables (unlike Lynx) but does not display links
85 #w3m -dump -cols 75 -T text/html dump.html > $@
86 -rm -f dump.html
87
88 validate: howto.db
89 nsgmls -s -wxml $(XML_DECL) howto.db
90
91 install: howto.html howto.ja.html howto.ps
92 scp *.html howto.ps bortz@people.debian.org:public_html/SGML-HOWTO/$(NAME)
93
94 clean:
95 rm -rf *.db *.html *.aux *.log *.dvi *.ps *.tex *.txt *.pdf
96
97 ## Local Variables: ##
98 ## mode:makefile ##
99 ## End: ##
100
101
102

  ViewVC Help
Powered by ViewVC 1.1.5