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
|
515
|
17 APPS = asm.appendix basic09.appendix errors.appendix phases.appendix
|
466
|
18
|
515
|
19 SYSCALL = abort.refentry abs.refentry access.refentry chain.refentry \
|
|
20 chdir.refentry chmod.refentry chown.refentry close.refentry \
|
|
21 crc.refentry creat.refentry defdrive.refentry dup.refentry \
|
|
22 exit.refentry getpid.refentry getstat.refentry \
|
|
23 getuid.refentry intercept.refentry kill.refentry \
|
|
24 lseek.refentry mknod.refentry modload.refentry \
|
|
25 munlink.refentry open.refentry os9fork.refentry \
|
|
26 os9.refentry pause.refentry prerr.refentry read.refentry \
|
|
27 sbrk.refentry setime.refentry setpr.refentry setstat.refentry \
|
|
28 setuid.refentry signal.refentry stacksize.refentry \
|
|
29 strass.refentry tsleep.refentry unlink.refentry \
|
|
30 wait.refentry write.refentry
|
466
|
31
|
515
|
32 SUPPORT = $(PREFACE) $(CHAPTERS) $(APPS) $(STDLIB) $(SYSCALL)
|
466
|
33
|
515
|
34 all: $(BOOK).pdf
|
466
|
35
|
637
|
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
|
515
|
43 $(BOOK).pdf: $(BOOK).docbook $(SUPPORT)
|
637
|
44 docbook2pdf -d docbook-utils-a4.dsl#print $(BOOK).docbook
|
|
45
|
|
46 xmlto: $(BOOK).docbook
|
|
47 xmlto pdf $(BOOK).docbook
|
515
|
48
|
|
49 $(BOOK).ps: $(BOOK).docbook
|
637
|
50 docbook2ps -d docbook-utils-a4.dsl#print $(BOOK).docbook
|
|
51 # docbook2ps -d $(STYLESHEET) $(BOOK).docbook
|
466
|
52
|
515
|
53 $(BOOK).html: $(BOOK).docbook
|
|
54 $(RM) *.htm *.html
|
|
55 # 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
|
|
57 docbook2html -d docbook-utils-a4.dsl#html $(BOOK).docbook
|
466
|
58
|
515
|
59 print: $(BOOK).ps
|
|
60 psnup -2 $(BOOK).ps | lpr
|
466
|
61
|
|
62 clean:
|
515
|
63 $(RM) *.htm *.html $(BOOK).pdf $(BOOK).ps
|