2 # $DragonFly: doc/share/mk/doc.project.mk,v 1.3 2006/08/06 20:58:06 justin Exp $
4 # $FreeBSD: doc/share/mk/doc.project.mk,v 1.26 2005/02/20 17:14:25 hrs Exp $
5 # This file includes the other makefiles, which contain enough
6 # knowledge to perform their duties without the system make files.
9 # ------------------------------------------------------------------------
11 # Document-specific variables:
13 # DOC This _must_ be set if there is a document to
14 # build. It should be without prefix.
16 # DOCFORMAT Format of the document. Defaults to docbook.
17 # docbook is also the only option currently.
19 # MAINTAINER This denotes who is responsible for maintaining
20 # this section of the project. If unset, set to
21 # doc-team@DragonFlyBSD.org
24 # ------------------------------------------------------------------------
26 # User-modifiable variables:
28 # PREFIX Standard path to document-building applications
29 # installed to serve the documentation build
30 # process, usually by installing the docproj port
31 # or package. Default is ${LOCALBASE} or /usr/local
33 # NOINCLUDEMK Whether to include the standard BSD make files,
34 # or just to emulate them poorly. Set this if you
35 # aren't on DragonFlyBSD, or a compatible sibling. By
39 # ------------------------------------------------------------------------
41 # Make files included:
43 # doc.install.mk Installation specific information, including
44 # ownership and permissions.
46 # doc.subdir.mk Subdirectory related configuration, including
47 # handling "obj" builds.
49 # doc.common.mk targets and variables commonly used in doc/ and
52 # DOCFORMAT-specific make files, like:
54 # doc.docbook.mk Building and installing docbook documentation.
55 # Currently the only method.
58 # Document-specific defaults
60 MAINTAINER?= doc-team@DragonFlyBSD.org
62 # Master list of known target formats. The doc.<format>.mk files implement
63 # the code to convert from their source format to one or more of these target
65 ALL_FORMATS= html html.tar html-split html-split.tar txt rtf ps pdf tex dvi tar pdb
79 HTML2TXT?= ${PREFIX}/bin/links
80 HTML2TXTOPTS?= -dump -width 72 ${HTML2TXTFLAGS}
82 ISPELLOPTS?= -l -p /usr/share/dict/freebsd ${ISPELLFLAGS}
84 .if exists(/usr/bin/perl)
86 .elif exists({$PREFIX}/bin/perl)
87 PERL?= {$PREFIX}/bin/perl
91 REALPATH?= /bin/realpath
93 XSLTPROC?= ${PREFIX}/bin/xsltproc
94 TIDY?= ${PREFIX}/bin/tidy
96 # In teTeX 3.0 and later, pdfetex(1) is used as the default TeX
97 # engine for JadeTeX and tex(1) cannot be used as ${TEX_CMD} anymore
98 # due to incompatibility of the format file. Since the teTeX 3.0
99 # distribution has "${PREFIX}/share/texmf-dist/LICENSE.texmf,"
100 # it is checked here to determine which TeX engine should be used.
101 .if exists(${PREFIX}/share/texmf-dist/LICENSE.texmf)
102 TEX_CMD?= ${PREFIX}/bin/etex
103 PDFTEX_CMD?= ${PREFIX}/bin/pdfetex
105 TEX_CMD?= ${PREFIX}/bin/tex
106 PDFTEX_CMD?= ${PREFIX}/bin/pdftex
108 LATEX_CMD?= ${PREFIX}/bin/latex
109 JADETEX_CMD?= ${TEX_CMD} "&jadetex"
110 PDFJADETEX_CMD?=${PDFTEX_CMD} "&pdfjadetex"
111 FOP_CMD?= ${PREFIX}/share/fop/fop.sh
112 XEP_CMD?= sh ${HOME}/XEP/xep.sh
113 JAVA_CMD?= ${PREFIX}/bin/javavm
114 SAXON_CMD?= ${JAVA_CMD} -jar ${PREFIX}/share/java/classes/saxon.jar
117 # Image processing (contains code used by the doc.<format>.mk files, so must
119 .include "doc.images.mk"
121 # targets and variables commonly used in doc/ and www/ tree.
122 .include "doc.common.mk"
124 DOC_LOCAL_MK= ${DOC_PREFIX}/${LANGCODE}/share/mk/doc.local.mk
126 .if exists(${DOC_LOCAL_MK})
127 .include "${DOC_LOCAL_MK}"
130 # Ownership information.
131 .include "doc.install.mk"
133 # Format-specific configuration
135 .if ${DOCFORMAT} == "docbook"
136 .include "doc.docbook.mk"
138 .if ${DOCFORMAT} == "html"
139 .include "doc.html.mk"
144 .include "doc.subdir.mk"