annotate docs/ccguide/makefile @ 637:62789dc2b312

Convert to Docbook XML format
author roug
date Sun, 08 Dec 2002 11:09:09 +0000
parents 253b6096ee01
children 767a608364b2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
637
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
1 DOCBOOKDSL = /usr/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
2 XMLDCL = /usr/share/doc/openjade-1.3.1/pubtext/xml.dcl
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
3 BOOK = ccguide
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
4 STYLESHEET = docbook-utils.dsl
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
5
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
6 PREFACE = intro.preface
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
7 CHAPTERS = chap1.chapter chap2.chapter chap3.chapter chap4.chapter
570
253b6096ee01 All function prototypes are added.
roug
parents: 515
diff changeset
8 STDLIB = atof.refentry fclose.refentry feof.refentry \
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
9 findstr.refentry fopen.refentry fread.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
10 fseek.refentry getc.refentry gets.refentry isalpha.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
11 l3tol.refentry longjmp.refentry malloc.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
12 mktemp.refentry printf.refentry putc.refentry puts.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
13 qsort.refentry scanf.refentry setbuf.refentry sleep.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
14 strcat.refentry system.refentry toupper.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
15 ungetc.refentry
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
16
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
17 APPS = asm.appendix basic09.appendix errors.appendix phases.appendix
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
18
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
19 SYSCALL = abort.refentry abs.refentry access.refentry chain.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
20 chdir.refentry chmod.refentry chown.refentry close.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
21 crc.refentry creat.refentry defdrive.refentry dup.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
22 exit.refentry getpid.refentry getstat.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
23 getuid.refentry intercept.refentry kill.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
24 lseek.refentry mknod.refentry modload.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
25 munlink.refentry open.refentry os9fork.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
26 os9.refentry pause.refentry prerr.refentry read.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
27 sbrk.refentry setime.refentry setpr.refentry setstat.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
28 setuid.refentry signal.refentry stacksize.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
29 strass.refentry tsleep.refentry unlink.refentry \
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
30 wait.refentry write.refentry
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
31
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
32 SUPPORT = $(PREFACE) $(CHAPTERS) $(APPS) $(STDLIB) $(SYSCALL)
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
33
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
34 all: $(BOOK).pdf
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
35
637
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
36 xml:
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
37 openjade -t tex -o $(BOOK).tex -d $(DOCBOOKDSL) $(XMLDCL) $(BOOK).docbook
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
38 pdfjadetex $(BOOK).tex
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
39
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
40 lint:
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
41 xmllint --valid --noout $(BOOK).docbook
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
42
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
43 $(BOOK).pdf: $(BOOK).docbook $(SUPPORT)
637
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
44 docbook2pdf -d docbook-utils-a4.dsl#print $(BOOK).docbook
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
45
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
46 xmlto: $(BOOK).docbook
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
47 xmlto pdf $(BOOK).docbook
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
48
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
49 $(BOOK).ps: $(BOOK).docbook
637
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
50 docbook2ps -d docbook-utils-a4.dsl#print $(BOOK).docbook
62789dc2b312 Convert to Docbook XML format
roug
parents: 570
diff changeset
51 # docbook2ps -d $(STYLESHEET) $(BOOK).docbook
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
52
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
53 $(BOOK).html: $(BOOK).docbook
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
54 $(RM) *.htm *.html
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
55 # jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOK).docbook
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
56 # collateindex.pl -p -o index.docbook HTML.index
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
57 docbook2html -d docbook-utils-a4.dsl#html $(BOOK).docbook
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
58
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
59 print: $(BOOK).ps
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
60 psnup -2 $(BOOK).ps | lpr
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
61
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
62 clean:
515
87fe15316ccc Sprused up Makefiles
boisy
parents: 468
diff changeset
63 $(RM) *.htm *.html $(BOOK).pdf $(BOOK).ps