-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile.tmpl
More file actions
60 lines (42 loc) · 1.69 KB
/
Makefile.tmpl
File metadata and controls
60 lines (42 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
############################################################
# Customizable variables
############################################################
-include Makefile.stub
# TOOLS_DIR is the place where Makefile.base and other scripts present.
TOOLS_DIR := /opt/docbook/tools
# DOCUMENT_ROOT is the prefix of file location.
DOCUMENT_ROOT ?= /docbook
# XML_SRCDIR defines the place where XMLs present.
XML_SRCDIR ?= .
# XML_INDEX_NAME defines the main XML index page without extension.
XML_INDEX_NAME ?=
# MM_SRC is FreeMind .mm filename
MM_SRC ?=
# RENDER_DIR defines where rendered html, rtf, pdf present.
RENDER_DIR = ../../doc/$(NAME)
# OUTNAME defines output HTML(no chunk), RTF, PDF, Archive(*.tar.bz2) base file name without extension.
OUTNAME := $(notdir $(shell pwd))
# Whether or not contain images/
IMAGES := $(if $(shell ls images/ 2>/dev/null), images/*,)
# $(INSTALL_DIR)/$(NAME) defines where htmls, pdf, tar.bz2 installed.
INSTALL_DIR := install
# NAME defines subdir of INSTALLed Target
NAME := $(notdir $(shell pwd))
# RENDER_OTHERS and INSTALL_OTHERS are scripts copy other necessary files to target dir.
RENDER_OTHERS :=
INSTALL_OTHERS :=
HTML_CHUNK_DIR := $(RENDER_DIR)
# Disable certain backends
#IGNORE_HTML_MAKE := yes
#IGNORE_HTML-CHUNK_MAKE := yes
IGNORE_CHM_MAKE := yes
IGNORE_PDF_MAKE := yes
IGNORE_RTF_MAKE := yes
IGNORE_TXT_MAKE := yes
# where or not create version.xml. if set to yes, generate version.xml
CREATE_VERSION_SOURCE := yes
DOCBOOK_XSL_ROOT := http://www.worldhello.net/docbook/xsl/current
############################################################
# Include Makefile.base
############################################################
include $(TOOLS_DIR)/Makefile.base