Mercurial > hg > Members > kono > nitros9-code
comparison docs/ccguide/makefile @ 641:767a608364b2
Some extra comments to the Makefile
author | roug |
---|---|
date | Sun, 08 Dec 2002 11:13:21 +0000 |
parents | 62789dc2b312 |
children | c8fcb9426d8b |
comparison
equal
deleted
inserted
replaced
640:8a16d38f3d94 | 641:767a608364b2 |
---|---|
31 | 31 |
32 SUPPORT = $(PREFACE) $(CHAPTERS) $(APPS) $(STDLIB) $(SYSCALL) | 32 SUPPORT = $(PREFACE) $(CHAPTERS) $(APPS) $(STDLIB) $(SYSCALL) |
33 | 33 |
34 all: $(BOOK).pdf | 34 all: $(BOOK).pdf |
35 | 35 |
36 xml: | 36 # Check for syntax errors in XML |
37 openjade -t tex -o $(BOOK).tex -d $(DOCBOOKDSL) $(XMLDCL) $(BOOK).docbook | |
38 pdfjadetex $(BOOK).tex | |
39 | |
40 lint: | 37 lint: |
41 xmllint --valid --noout $(BOOK).docbook | 38 xmllint --valid --noout $(BOOK).docbook |
42 | 39 |
43 $(BOOK).pdf: $(BOOK).docbook $(SUPPORT) | 40 $(BOOK).pdf: $(BOOK).docbook $(SUPPORT) |
44 docbook2pdf -d docbook-utils-a4.dsl#print $(BOOK).docbook | 41 docbook2pdf -d "docbook-utils-a4.dsl#print" $(BOOK).docbook |
45 | 42 |
46 xmlto: $(BOOK).docbook | 43 xmlto: $(BOOK).docbook |
47 xmlto pdf $(BOOK).docbook | 44 xmlto pdf $(BOOK).docbook |
48 | 45 |
49 $(BOOK).ps: $(BOOK).docbook | 46 $(BOOK).ps: $(BOOK).docbook |
50 docbook2ps -d docbook-utils-a4.dsl#print $(BOOK).docbook | 47 docbook2ps -d "docbook-utils-a4.dsl#print" $(BOOK).docbook |
51 # docbook2ps -d $(STYLESHEET) $(BOOK).docbook | 48 # docbook2ps -d $(STYLESHEET)#print $(BOOK).docbook |
49 | |
50 # This rule is an alternative way to produce a PDF document | |
51 xml-pdf: | |
52 openjade -t tex -o $(BOOK).tex -d $(DOCBOOKDSL) $(XMLDCL) $(BOOK).docbook | |
53 pdfjadetex $(BOOK).tex | |
54 | |
52 | 55 |
53 $(BOOK).html: $(BOOK).docbook | 56 $(BOOK).html: $(BOOK).docbook |
54 $(RM) *.htm *.html | 57 $(RM) *.htm *.html |
55 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOK).docbook | 58 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOK).docbook |
56 # collateindex.pl -p -o index.docbook HTML.index | 59 # collateindex.pl -p -o index.docbook HTML.index |
57 docbook2html -d docbook-utils-a4.dsl#html $(BOOK).docbook | 60 docbook2html -d "docbook-utils-a4.dsl#html" $(BOOK).docbook |
58 | 61 |
59 print: $(BOOK).ps | 62 print: $(BOOK).ps |
60 psnup -2 $(BOOK).ps | lpr | 63 psnup -2 $(BOOK).ps | lpr |
61 | 64 |
62 clean: | 65 clean: |
63 $(RM) *.htm *.html $(BOOK).pdf $(BOOK).ps | 66 $(RM) *.htm *.html *.tex *.out $(BOOK).pdf $(BOOK).ps |