Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
80637c9b
Commit
80637c9b
authored
Jun 02, 2009
by
Simon Marlow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
emit a helpful message if you say 'make html' and BUILD_DOCBOOK_HTML=NO
parent
c9a11cb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
rules/docbook.mk
rules/docbook.mk
+15
-2
No files found.
rules/docbook.mk
View file @
80637c9b
...
...
@@ -22,10 +22,11 @@ $(call clean-target,$1,docbook,$1/$2 $1/$2.pdf $1/$2.ps)
# empty "all_$1" target just in case we're not building docs at all
$(call
all-target,$1,)
.PHONY
:
html_$1
ifeq
"$$(BUILD_DOCBOOK_HTML)" "YES"
$(call
all-target,$1,html_$1)
.PHONY
:
html_$1
html_$1
:
$1/$2/index.html
$1/$2/index.html
:
$$($1_DOCBOOK_SOURCES)
...
...
@@ -36,16 +37,24 @@ $1/$2/index.html: $$($1_DOCBOOK_SOURCES)
$
$(XSLTPROC_LABEL_OPTS)
$
$(XSLTPROC_OPTS)
\
$
$(DIR_DOCBOOK_XSL)
/html/chunk.xsl
$1
/
$2
.xml
cp
mk/fptools.css
$
$(
dir
$$
@
)
else
html_$1
:
@
echo
"*** HTML documentation is disabled; BUILD_DOCBOOK_HTML = NO"
@
exit
1
endif
.PHONY
:
ps_$1
ifeq
"$$(BUILD_DOCBOOK_PS)" "YES"
$(call
all-target,$1,ps_$1)
.PHONY
:
ps_$1
ps_$1
:
$1/$2.ps
$1/$2.ps
:
$$($1_DOCBOOK_SOURCES)
"
$
$(DBLATEX)
"
$
$(DBLATEX_OPTS)
$1
/
$2
.xml
--ps
-o
$$
@
else
ps_$1
:
@
echo
"*** PS documentation is disabled; BUILD_DOCBOOK_PS = NO"
@
exit
1
endif
ifeq
"$$(BUILD_DOCBOOK_PDF)" "YES"
...
...
@@ -56,6 +65,10 @@ pdf_$1 : $1/$2.pdf
$1/$2.pdf
:
$$($1_DOCBOOK_SOURCES)
"
$
$(DBLATEX)
"
$
$(DBLATEX_OPTS)
$1
/
$2
.xml
--pdf
-o
$$
@
else
pdf_$1
:
@
echo
"*** PDF documentation is disabled; BUILD_DOCBOOK_PDF = NO"
@
exit
1
endif
endef
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment