Don't clean up pre-built docs if no docbook installed.

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/165
This commit is contained in:
Akira TAGOH 2019-06-21 09:55:42 +00:00
parent f2d4291d12
commit 189685365a
1 changed files with 17 additions and 3 deletions

View File

@ -33,11 +33,25 @@ EXTRA_DIST = \
confdir.sgml.in \
func.sgml \
$(NULL)
MAINTAINERCLEANFILES = \
$(DOC_FUNCS_SGML) \
if USEDOCBOOK
maintainerdoccleanfiles = \
$(NULL)
cleandocfiles = \
$(BUILT_DOCS) \
$(NULL)
else
maintainerdoccleanfiles = \
$(BUILT_DOCS) \
$(NULL)
cleandocfiles = \
$(NULL)
endif
MAINTAINERCLEANFILES = \
$(DOC_FUNCS_SGML) \
$(maintainerdoccleanfiles) \
$(NULL)
CLEANFILES = \
$(BUILT_DOCS) \
$(cleandocfiles) \
$(LOCAL_SGML_FILES) \
confdir.sgml \
func.refs \