466
|
1 SRC=ccguide
|
|
2 STYLESHEET=docbook-utils.dsl
|
|
3
|
|
4 PREFACE=intro.preface
|
|
5 CHAPTERS=chap1.chapter chap2.chapter chap3.chapter chap4.chapter
|
|
6 STDLIB= atof.refentry fflush.refentry feof.refentry findstr.refentry \
|
|
7 fopen.refentry fread.refentry fseek.refentry getc.refentry \
|
|
8 gets.refentry isalpha.refentry l3tol.refentry longjmp.refentry \
|
468
|
9 malloc.refentry mktemp.refentry printf.refentry putc.refentry \
|
|
10 puts.refentry qsort.refentry scanf.refentry setbuf.refentry sleep.refentry \
|
466
|
11 strcat.refentry system.refentry toupper.refentry ungetc.refentry
|
|
12
|
|
13 APPS=asm.appendix basic09.appendix errors.appendix phases.appendix
|
|
14
|
|
15 SYSCALL= abort.refentry abs.refentry access.refentry chain.refentry \
|
|
16 chdir.refentry chmod.refentry chown.refentry close.refentry \
|
|
17 crc.refentry creat.refentry defdrive.refentry dup.refentry \
|
|
18 exit.refentry getpid.refentry getstat.refentry getuid.refentry \
|
|
19 intercept.refentry kill.refentry lseek.refentry mknod.refentry \
|
|
20 modload.refentry munlink.refentry open.refentry os9fork.refentry \
|
468
|
21 os9.refentry pause.refentry prerr.refentry read.refentry \
|
|
22 sbrk.refentry setime.refentry setpr.refentry setstat.refentry \
|
|
23 setuid.refentry signal.refentry stacksize.refentry strass.refentry \
|
|
24 tsleep.refentry unlink.refentry wait.refentry write.refentry
|
466
|
25
|
|
26 SUPPORT=$(PREFACE) $(CHAPTERS) $(APPS) $(STDLIB) $(SYSCALL)
|
|
27
|
|
28 all: $(SRC).pdf
|
|
29
|
|
30 $(SRC).pdf: $(SRC).docbook $(SUPPORT)
|
|
31 docbook2pdf -d docbook-utils-a4.dsl#print $(SRC).docbook
|
|
32
|
|
33 $(SRC).ps: $(SRC).docbook
|
|
34 docbook2ps -d docbook-utils-a4.dsl#print $(SRC).docbook
|
|
35 # docbook2ps -d $(STYLESHEET) $(SRC).docbook
|
|
36
|
|
37 $(SRC).html: $(SRC).docbook
|
|
38 rm -f *.htm *.html
|
|
39 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(SRC).docbook
|
|
40 # collateindex.pl -p -o index.docbook HTML.index
|
|
41 docbook2html -d docbook-utils-a4.dsl#html $(SRC).docbook
|
|
42
|
|
43 clean:
|
|
44 rm -f *.htm *.html $(SRC).pdf $(SRC).ps
|
|
45 print: $(SRC).ps
|
|
46 psnup -2 $(SRC).ps | lpr
|