comparison docs/ccguide/makefile @ 637:62789dc2b312

Convert to Docbook XML format
author roug
date Sun, 08 Dec 2002 11:09:09 +0000
parents 253b6096ee01
children 767a608364b2
comparison
equal deleted inserted replaced
636:94ff9d15614f 637:62789dc2b312
1 DOCBOOKDSL = /usr/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl
2 XMLDCL = /usr/share/doc/openjade-1.3.1/pubtext/xml.dcl
1 BOOK = ccguide 3 BOOK = ccguide
2 STYLESHEET = docbook-utils.dsl 4 STYLESHEET = docbook-utils.dsl
3 5
4 PREFACE = intro.preface 6 PREFACE = intro.preface
5 CHAPTERS = chap1.chapter chap2.chapter chap3.chapter chap4.chapter 7 CHAPTERS = chap1.chapter chap2.chapter chap3.chapter chap4.chapter
29 31
30 SUPPORT = $(PREFACE) $(CHAPTERS) $(APPS) $(STDLIB) $(SYSCALL) 32 SUPPORT = $(PREFACE) $(CHAPTERS) $(APPS) $(STDLIB) $(SYSCALL)
31 33
32 all: $(BOOK).pdf 34 all: $(BOOK).pdf
33 35
36 xml:
37 openjade -t tex -o $(BOOK).tex -d $(DOCBOOKDSL) $(XMLDCL) $(BOOK).docbook
38 pdfjadetex $(BOOK).tex
39
40 lint:
41 xmllint --valid --noout $(BOOK).docbook
42
34 $(BOOK).pdf: $(BOOK).docbook $(SUPPORT) 43 $(BOOK).pdf: $(BOOK).docbook $(SUPPORT)
35 docbook2pdf -d docbook-utils-a4.dsl#print $(BOOK).docbook 44 docbook2pdf -d docbook-utils-a4.dsl#print $(BOOK).docbook
45
46 xmlto: $(BOOK).docbook
47 xmlto pdf $(BOOK).docbook
36 48
37 $(BOOK).ps: $(BOOK).docbook 49 $(BOOK).ps: $(BOOK).docbook
38 docbook2ps -d docbook-utils-a4.dsl#print $(BOOK).docbook 50 docbook2ps -d docbook-utils-a4.dsl#print $(BOOK).docbook
39 # docbook2ps -d $(STYLESHEET) $(BOOK).docbook 51 # docbook2ps -d $(STYLESHEET) $(BOOK).docbook
40 52
41 $(BOOK).html: $(BOOK).docbook 53 $(BOOK).html: $(BOOK).docbook
42 $(RM) *.htm *.html 54 $(RM) *.htm *.html
43 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOK).docbook 55 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOK).docbook
44 # collateindex.pl -p -o index.docbook HTML.index 56 # collateindex.pl -p -o index.docbook HTML.index