637
|
1 DOCBOOKDSL = /usr/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl
|
|
2 XMLDCL = /usr/share/doc/openjade-1.3.1/pubtext/xml.dcl
|
515
|
3 BOOK = ccguide
|
|
4 STYLESHEET = docbook-utils.dsl
|
466
|
5
|
515
|
6 PREFACE = intro.preface
|
|
7 CHAPTERS = chap1.chapter chap2.chapter chap3.chapter chap4.chapter
|
570
|
8 STDLIB = atof.refentry fclose.refentry feof.refentry \
|
515
|
9 findstr.refentry fopen.refentry fread.refentry \
|
|
10 fseek.refentry getc.refentry gets.refentry isalpha.refentry \
|
|
11 l3tol.refentry longjmp.refentry malloc.refentry \
|
|
12 mktemp.refentry printf.refentry putc.refentry puts.refentry \
|
|
13 qsort.refentry scanf.refentry setbuf.refentry sleep.refentry \
|
|
14 strcat.refentry system.refentry toupper.refentry \
|
|
15 ungetc.refentry
|
466
|
16
|
1078
|
17 APPS = asm.appendix basic09.appendix errors.appendix phases.appendix \
|
|
18 creference.appendix
|
466
|
19
|
515
|
20 SYSCALL = abort.refentry abs.refentry access.refentry chain.refentry \
|
|
21 chdir.refentry chmod.refentry chown.refentry close.refentry \
|
|
22 crc.refentry creat.refentry defdrive.refentry dup.refentry \
|
|
23 exit.refentry getpid.refentry getstat.refentry \
|
|
24 getuid.refentry intercept.refentry kill.refentry \
|
|
25 lseek.refentry mknod.refentry modload.refentry \
|
|
26 munlink.refentry open.refentry os9fork.refentry \
|
|
27 os9.refentry pause.refentry prerr.refentry read.refentry \
|
|
28 sbrk.refentry setime.refentry setpr.refentry setstat.refentry \
|
|
29 setuid.refentry signal.refentry stacksize.refentry \
|
|
30 strass.refentry tsleep.refentry unlink.refentry \
|
|
31 wait.refentry write.refentry
|
466
|
32
|
515
|
33 SUPPORT = $(PREFACE) $(CHAPTERS) $(APPS) $(STDLIB) $(SYSCALL)
|
466
|
34
|
515
|
35 all: $(BOOK).pdf
|
466
|
36
|
641
|
37 # Check for syntax errors in XML
|
637
|
38 lint:
|
|
39 xmllint --valid --noout $(BOOK).docbook
|
|
40
|
515
|
41 $(BOOK).pdf: $(BOOK).docbook $(SUPPORT)
|
641
|
42 docbook2pdf -d "docbook-utils-a4.dsl#print" $(BOOK).docbook
|
637
|
43
|
|
44 xmlto: $(BOOK).docbook
|
|
45 xmlto pdf $(BOOK).docbook
|
515
|
46
|
|
47 $(BOOK).ps: $(BOOK).docbook
|
641
|
48 docbook2ps -d "docbook-utils-a4.dsl#print" $(BOOK).docbook
|
|
49 # docbook2ps -d $(STYLESHEET)#print $(BOOK).docbook
|
|
50
|
|
51 # This rule is an alternative way to produce a PDF document
|
|
52 xml-pdf:
|
|
53 openjade -t tex -o $(BOOK).tex -d $(DOCBOOKDSL) $(XMLDCL) $(BOOK).docbook
|
|
54 pdfjadetex $(BOOK).tex
|
|
55
|
466
|
56
|
515
|
57 $(BOOK).html: $(BOOK).docbook
|
|
58 $(RM) *.htm *.html
|
|
59 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOK).docbook
|
|
60 # collateindex.pl -p -o index.docbook HTML.index
|
641
|
61 docbook2html -d "docbook-utils-a4.dsl#html" $(BOOK).docbook
|
466
|
62
|
515
|
63 print: $(BOOK).ps
|
|
64 psnup -2 $(BOOK).ps | lpr
|
466
|
65
|
|
66 clean:
|
641
|
67 $(RM) *.htm *.html *.tex *.out $(BOOK).pdf $(BOOK).ps
|