Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 7u83 1
# $Id$
2
 
3
TIDY= tidy
4
XMLLINT= xmllint
5
XSLTPROC= xsltproc
6
 
7
STYLEDIR= ../stylesheets
8
 
9
TIDYFLAGS= --doctype transitional\
10
	   --output-xhtml yes\
11
	   -im -wrap 78 -utf8
12
 
13
XMLLINTFLAGS= --noout --postvalid --xinclude
14
 
15
XSLTPROCFLAGS= --stringparam css.decoration 0\
16
	       --stringparam html.stylesheet docstyle.css\
17
	       --stringparam paper.type A4\
18
	       --stringparam section.autolabel 1\
19
	       --stringparam section.label.includes.component.label 1\
20
	       --xinclude
21
 
22
# Typical BSD and pkgsrc locations.
23
PREFIX=	/usr/local/share /usr/pkg/share
24
.for prefix in ${PREFIX}
25
. if exists(${prefix}/xsl/docbook/xhtml/docbook.xsl)
26
DBXSL=	${prefix}/xsl/docbook/xhtml/docbook.xsl
27
. endif
28
.endfor
29
 
30
${DOC}.html: ${DOC}.xml
31
	${XSLTPROC} ${XSLTPROCFLAGS} -o ${.TARGET} ${DBXSL} ${DOC}.xml
32
	${TIDY} ${TIDYFLAGS} ${.TARGET}
33
 
34
all: ${DOC}.html
35
 
36
clean:
37
	rm -f ${DOC}.html
38
 
39
lint: ${DOC}.xml
40
	${XMLLINT} ${XMLLINTFLAGS} ${DOC}.xml