Mercurial > hg > Members > kono > nitros9-code
changeset 515:87fe15316ccc
Sprused up Makefiles
author | boisy |
---|---|
date | Thu, 10 Oct 2002 15:05:28 +0000 |
parents | 462779b1bcaf |
children | 6f1799317d2b |
files | docs/basic09/makefile docs/ccguide/makefile docs/nitros9guide/makefile docs/os9sysprog/makefile |
diffstat | 4 files changed, 87 insertions(+), 75 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/basic09/makefile Thu Oct 10 15:05:16 2002 +0000 +++ b/docs/basic09/makefile Thu Oct 10 15:05:28 2002 +0000 @@ -1,19 +1,22 @@ -OBJ=basic09 -STYLESHEET=docbook-utils.dsl +BOOK = basic09 +STYLESHEET = docbook-utils.dsl -all: book1.htm +all: $(BOOK).pdf -$(OBJ).pdf: $(OBJ).docbook $(STYLESHEET) - docbook2pdf -d $(STYLESHEET) $(OBJ).docbook +$(BOOK).pdf: $(BOOK).docbook $(STYLESHEET) + docbook2pdf -d $(STYLESHEET) $(BOOK).docbook -$(OBJ).ps: $(OBJ).docbook $(STYLESHEET) - docbook2ps -d $(STYLESHEET) $(OBJ).docbook +$(BOOK).ps: $(BOOK).docbook $(STYLESHEET) + docbook2ps -d $(STYLESHEET) $(BOOK).docbook -book1.htm: $(OBJ).docbook $(STYLESHEET) - rm -f *.htm *.html -# jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(OBJ).docbook +$(BOOK).htm: $(BOOK).docbook $(STYLESHEET) + $(RM) *.htm *.html +# jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOK).docbook # collateindex.pl -p -o index.docbook HTML.index - docbook2html -d $(STYLESHEET)#html $(OBJ).docbook + docbook2html -d $(STYLESHEET)#html $(BOOK).docbook print: - psnup -2 $(OBJ).ps | lpr + psnup -2 $(BOOK).ps | lpr + +clean: + $(RM) *.html *.htm $(BOOK).pdf $(BOOK).ps
--- a/docs/ccguide/makefile Thu Oct 10 15:05:16 2002 +0000 +++ b/docs/ccguide/makefile Thu Oct 10 15:05:28 2002 +0000 @@ -1,46 +1,51 @@ -SRC=ccguide -STYLESHEET=docbook-utils.dsl +BOOK = ccguide +STYLESHEET = docbook-utils.dsl -PREFACE=intro.preface -CHAPTERS=chap1.chapter chap2.chapter chap3.chapter chap4.chapter -STDLIB= atof.refentry fflush.refentry feof.refentry findstr.refentry \ - fopen.refentry fread.refentry fseek.refentry getc.refentry \ - gets.refentry isalpha.refentry l3tol.refentry longjmp.refentry \ - malloc.refentry mktemp.refentry printf.refentry putc.refentry \ - puts.refentry qsort.refentry scanf.refentry setbuf.refentry sleep.refentry \ - strcat.refentry system.refentry toupper.refentry ungetc.refentry +PREFACE = intro.preface +CHAPTERS = chap1.chapter chap2.chapter chap3.chapter chap4.chapter +STDLIB = atof.refentry fflush.refentry feof.refentry \ + findstr.refentry fopen.refentry fread.refentry \ + fseek.refentry getc.refentry gets.refentry isalpha.refentry \ + l3tol.refentry longjmp.refentry malloc.refentry \ + mktemp.refentry printf.refentry putc.refentry puts.refentry \ + qsort.refentry scanf.refentry setbuf.refentry sleep.refentry \ + strcat.refentry system.refentry toupper.refentry \ + ungetc.refentry -APPS=asm.appendix basic09.appendix errors.appendix phases.appendix +APPS = asm.appendix basic09.appendix errors.appendix phases.appendix -SYSCALL= abort.refentry abs.refentry access.refentry chain.refentry \ - chdir.refentry chmod.refentry chown.refentry close.refentry \ - crc.refentry creat.refentry defdrive.refentry dup.refentry \ - exit.refentry getpid.refentry getstat.refentry getuid.refentry \ - intercept.refentry kill.refentry lseek.refentry mknod.refentry \ - modload.refentry munlink.refentry open.refentry os9fork.refentry \ - os9.refentry pause.refentry prerr.refentry read.refentry \ - sbrk.refentry setime.refentry setpr.refentry setstat.refentry \ - setuid.refentry signal.refentry stacksize.refentry strass.refentry \ - tsleep.refentry unlink.refentry wait.refentry write.refentry +SYSCALL = abort.refentry abs.refentry access.refentry chain.refentry \ + chdir.refentry chmod.refentry chown.refentry close.refentry \ + crc.refentry creat.refentry defdrive.refentry dup.refentry \ + exit.refentry getpid.refentry getstat.refentry \ + getuid.refentry intercept.refentry kill.refentry \ + lseek.refentry mknod.refentry modload.refentry \ + munlink.refentry open.refentry os9fork.refentry \ + os9.refentry pause.refentry prerr.refentry read.refentry \ + sbrk.refentry setime.refentry setpr.refentry setstat.refentry \ + setuid.refentry signal.refentry stacksize.refentry \ + strass.refentry tsleep.refentry unlink.refentry \ + wait.refentry write.refentry -SUPPORT=$(PREFACE) $(CHAPTERS) $(APPS) $(STDLIB) $(SYSCALL) +SUPPORT = $(PREFACE) $(CHAPTERS) $(APPS) $(STDLIB) $(SYSCALL) -all: $(SRC).pdf +all: $(BOOK).pdf -$(SRC).pdf: $(SRC).docbook $(SUPPORT) - docbook2pdf -d docbook-utils-a4.dsl#print $(SRC).docbook +$(BOOK).pdf: $(BOOK).docbook $(SUPPORT) + docbook2pdf -d docbook-utils-a4.dsl#print $(BOOK).docbook + +$(BOOK).ps: $(BOOK).docbook + docbook2ps -d docbook-utils-a4.dsl#print $(BOOK).docbook +# docbook2ps -d $(STYLESHEET) $(BOOK).docbook -$(SRC).ps: $(SRC).docbook - docbook2ps -d docbook-utils-a4.dsl#print $(SRC).docbook -# docbook2ps -d $(STYLESHEET) $(SRC).docbook +$(BOOK).html: $(BOOK).docbook + $(RM) *.htm *.html +# jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOK).docbook +# collateindex.pl -p -o index.docbook HTML.index + docbook2html -d docbook-utils-a4.dsl#html $(BOOK).docbook -$(SRC).html: $(SRC).docbook - rm -f *.htm *.html -# jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(SRC).docbook -# collateindex.pl -p -o index.docbook HTML.index - docbook2html -d docbook-utils-a4.dsl#html $(SRC).docbook +print: $(BOOK).ps + psnup -2 $(BOOK).ps | lpr clean: - rm -f *.htm *.html $(SRC).pdf $(SRC).ps -print: $(SRC).ps - psnup -2 $(SRC).ps | lpr + $(RM) *.htm *.html $(BOOK).pdf $(BOOK).ps
--- a/docs/nitros9guide/makefile Thu Oct 10 15:05:16 2002 +0000 +++ b/docs/nitros9guide/makefile Thu Oct 10 15:05:28 2002 +0000 @@ -1,22 +1,23 @@ -SRC=os9guide -STYLESHEET=docbook-utils.dsl +BOOK = os9guide +STYLESHEET = docbook-utils.dsl -all: $(SRC).html +all: $(BOOK).pdf -$(SRC).pdf: $(SRC).docbook - docbook2pdf -d docbook-utils-a4.dsl#print $(SRC).docbook +$(BOOK).pdf: $(BOOK).docbook + docbook2pdf -d docbook-utils-a4.dsl#print $(BOOK).docbook -$(SRC).ps: $(SRC).docbook - docbook2ps -d docbook-utils-a4.dsl#print $(SRC).docbook -# docbook2ps -d $(STYLESHEET) $(SRC).docbook +$(BOOK).ps: $(BOOK).docbook + docbook2ps -d docbook-utils-a4.dsl#print $(BOOK).docbook +# docbook2ps -d $(STYLESHEET) $(BOOK).docbook -$(SRC).html: $(SRC).docbook - rm -f *.htm *.html -# jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(SRC).docbook +$(BOOK).html: $(BOOK).docbook + $(RM) *.htm *.html +# jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOK).docbook # collateindex.pl -p -o index.docbook HTML.index - docbook2html -d docbook-utils-a4.dsl#html $(SRC).docbook + docbook2html -d docbook-utils-a4.dsl#html $(BOOK).docbook + +print: $(BOOK).ps + psnup -2 $(BOOK).ps | lpr clean: - rm -f *.htm *.html $(SRC).pdf $(SRC).ps -print: $(SRC).ps - psnup -2 $(SRC).ps | lpr + $(RM) *.htm *.html $(BOOK).pdf $(BOOK).ps
--- a/docs/os9sysprog/makefile Thu Oct 10 15:05:16 2002 +0000 +++ b/docs/os9sysprog/makefile Thu Oct 10 15:05:28 2002 +0000 @@ -1,20 +1,23 @@ -SRC=os9sysprog -STYLESHEET=docbook-utils.dsl +BOOK = os9sysprog +STYLESHEET = docbook-utils.dsl -all: $(SRC).html +all: $(BOOK).pdf -$(SRC).pdf: $(SRC).docbook $(STYLESHEET) - docbook2pdf $(SRC).docbook +$(BOOK).pdf: $(BOOK).docbook $(STYLESHEET) + docbook2pdf $(BOOK).docbook -$(SRC).ps: $(SRC).docbook $(STYLESHEET) - docbook2ps $(SRC).docbook -# docbook2ps -d $(STYLESHEET) $(SRC).docbook +$(BOOK).ps: $(BOOK).docbook $(STYLESHEET) + docbook2ps $(BOOK).docbook +# docbook2ps -d $(STYLESHEET) $(BOOK).docbook -$(SRC).html: $(SRC).docbook $(STYLESHEET) +$(BOOK).html: $(BOOK).docbook $(STYLESHEET) rm -f *.htm *.html -# jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(SRC).docbook +# jade -t sgml -V html-index -d /usr/share/sgml/docbook/dsssl-stylesheets-1.64/html/docbook.dsl $(BOOK).docbook # collateindex.pl -p -o index.docbook HTML.index - docbook2html $(SRC).docbook + docbook2html $(BOOK).docbook print: - psnup -2 $(SRC).ps | lpr + psnup -2 $(BOOK).ps | lpr + +clean: + $(RM) *.htm *.html $(BOOK).pdf $(BOOK).ps