view docs/os9sysprog/makefile @ 2968:13885d9433d5

3rdparty: Further harmonize makefiles More consistency love. And use CP instead of OS9COPY when copying plain files.
author Tormod Volden <debian.tormod@gmail.com>
date Fri, 04 Apr 2014 21:34:02 +0200
parents f2e92661b4c6
children
line wrap: on
line source

BOOK		= os9sysprog
STYLESHEET	= ../stylesheets/docbook-utils.dsl

all:	$(BOOK).pdf

$(BOOK).pdf: $(BOOK).docbook $(STYLESHEET)
	 docbook2pdf -d "$(STYLESHEET)#print" $(BOOK).docbook

$(BOOK).ps: $(BOOK).docbook $(STYLESHEET)
	 docbook2ps -d "$(STYLESHEET)#print" $(BOOK).docbook

$(BOOK).html: $(BOOK).docbook $(STYLESHEET)
	$(RM) *.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" $(BOOK).docbook

print:
	psnup -2 $(BOOK).ps | lpr

clean:
	$(RM) *.html $(BOOK).pdf $(BOOK).ps