summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2019-06-21 09:55:42 +0000
committerAkira TAGOH <akira@tagoh.org>2019-06-21 09:56:03 +0000
commit189685365a731f2e25485186ef93960496f78ad3 (patch)
tree1b74898d5d0e202d951114e3aa001af156462b35 /doc
parentf2d4291d12ca1a2146d90da32a399fffff3e8227 (diff)
Don't clean up pre-built docs if no docbook installed.
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/165
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am20
1 files changed, 17 insertions, 3 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 2194ab7..2cb6410 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -33,11 +33,25 @@ EXTRA_DIST = \
confdir.sgml.in \
func.sgml \
$(NULL)
-MAINTAINERCLEANFILES = \
- $(DOC_FUNCS_SGML) \
+if USEDOCBOOK
+maintainerdoccleanfiles = \
$(NULL)
-CLEANFILES = \
+cleandocfiles = \
+ $(BUILT_DOCS) \
+ $(NULL)
+else
+maintainerdoccleanfiles = \
$(BUILT_DOCS) \
+ $(NULL)
+cleandocfiles = \
+ $(NULL)
+endif
+MAINTAINERCLEANFILES = \
+ $(DOC_FUNCS_SGML) \
+ $(maintainerdoccleanfiles) \
+ $(NULL)
+CLEANFILES = \
+ $(cleandocfiles) \
$(LOCAL_SGML_FILES) \
confdir.sgml \
func.refs \