Mercurial > hg > Members > kono > nitros9-code
comparison docs/nitros9guide/makefile @ 1148:bc28c3bc3769
Put all stylesheets in one central location
author | roug |
---|---|
date | Sun, 27 Apr 2003 19:41:14 +0000 |
parents | 4dae346c4969 |
children | b00cf13c9f61 |
comparison
equal
deleted
inserted
replaced
1147:ba4b50f63658 | 1148:bc28c3bc3769 |
---|---|
1 BOOKL1 = os9l1guide | 1 BOOKL1 = os9l1guide |
2 BOOKL2 = os9l2guide | 2 BOOKL2 = os9l2guide |
3 STYLESHEET = docbook-utils.dsl | 3 STYLESHEET = ../stylesheets/docbook-utils.dsl |
4 | 4 |
5 all: $(BOOKL1).pdf $(BOOKL2).pdf | 5 all: $(BOOKL1).pdf $(BOOKL2).pdf |
6 | 6 |
7 $(BOOKL1).pdf: $(BOOKL1).docbook $(SRCS) | 7 $(BOOKL1).pdf: $(BOOKL1).docbook $(SRCS) |
8 docbook2pdf -d docbook-utils-a4.dsl#print $(BOOKL1).docbook | 8 docbook2pdf -d $(STYLESHEET)#print $(BOOKL1).docbook |
9 | 9 |
10 $(BOOKL2).pdf: $(BOOKL2).docbook $(SRCS) | 10 $(BOOKL2).pdf: $(BOOKL2).docbook $(SRCS) |
11 docbook2pdf -d docbook-utils-a4.dsl#print $(BOOKL2).docbook | 11 docbook2pdf -d $(STYLESHEET)#print $(BOOKL2).docbook |
12 | 12 |
13 $(BOOKL1).ps: $(BOOKL1).docbook $(SRCS) | 13 $(BOOKL1).ps: $(BOOKL1).docbook $(SRCS) |
14 docbook2ps -d docbook-utils-a4.dsl#print $(BOOKL1).docbook | 14 docbook2ps -d $(STYLESHEET)#print $(BOOKL1).docbook |
15 # docbook2ps -d $(STYLESHEET) $(BOOKL1).docbook | |
16 | 15 |
17 $(BOOKL2).ps: $(BOOKL2).docbook $(SRCS) | 16 $(BOOKL2).ps: $(BOOKL2).docbook $(SRCS) |
18 docbook2ps -d docbook-utils-a4.dsl#print $(BOOKL2).docbook | 17 docbook2ps -d $(STYLESHEET)#print $(BOOKL2).docbook |
19 # docbook2ps -d $(STYLESHEET) $(BOOKL2).docbook | |
20 | 18 |
21 $(BOOKL1).html: $(BOOKL1).docbook $(SRCS) | 19 $(BOOKL1).html: $(BOOKL1).docbook $(SRCS) |
22 $(RM) *.htm *.html | 20 $(RM) *.html |
23 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOKL1).docbook | 21 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOKL1).docbook |
24 # collateindex.pl -p -o index.docbook HTML.index | 22 # collateindex.pl -p -o index.docbook HTML.index |
25 docbook2html -d docbook-utils-a4.dsl#html $(BOOKL1).docbook | 23 docbook2html -d $(STYLESHEET)#html $(BOOKL1).docbook |
26 | 24 |
27 $(BOOKL2).html: $(BOOKL2).docbook $(SRCS) | 25 $(BOOKL2).html: $(BOOKL2).docbook $(SRCS) |
28 $(RM) *.htm *.html | 26 $(RM) *.html |
29 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOKL2).docbook | 27 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOKL2).docbook |
30 # collateindex.pl -p -o index.docbook HTML.index | 28 # collateindex.pl -p -o index.docbook HTML.index |
31 docbook2html -d docbook-utils-a4.dsl#html $(BOOKL2).docbook | 29 docbook2html -d $(STYLESHEET)#html $(BOOKL2).docbook |
32 | 30 |
33 print: $(BOOKL1).ps $(BOOKL2).ps | 31 print: $(BOOKL1).ps $(BOOKL2).ps |
34 psnup -2 $(BOOKL1).ps | lpr | 32 psnup -2 $(BOOKL1).ps | lpr |
35 psnup -2 $(BOOKL2).ps | lpr | 33 psnup -2 $(BOOKL2).ps | lpr |
36 | 34 |
37 clean: | 35 clean: |
38 $(RM) *.htm *.html $(BOOKL1).pdf $(BOOKL1).ps $(BOOKL2).pdf \ | 36 $(RM) *.html $(BOOKL1).pdf $(BOOKL1).ps $(BOOKL2).pdf \ |
39 $(BOOKL2).ps *.log *.out *.aux | 37 $(BOOKL2).ps *.log *.out *.aux |
40 | 38 |
41 SRCS = $(CHAPS) $(APXS) $(REFS) | 39 SRCS = $(CHAPS) $(APXS) $(REFS) |
42 CHAPS = intro.preface \ | 40 CHAPS = intro.preface \ |
43 chap1.chapter chap2.chapter chap3.chapter chap4.chapter \ | 41 chap1.chapter chap2.chapter chap3.chapter chap4.chapter \ |
44 chap5.chapter chap6.chapter chap7.chapter | 42 chap5.chapter chap6.chapter chap7.chapter |