Add --disable-docs flag
This commit is contained in:
parent
0da305f7f8
commit
9238fc061d
16
configure.in
16
configure.in
|
@ -289,6 +289,22 @@ AC_SUBST(CONFDIR)
|
||||||
ORTH_FILES=`cd fc-lang && echo *.orth`
|
ORTH_FILES=`cd fc-lang && echo *.orth`
|
||||||
AC_SUBST(ORTH_FILES)
|
AC_SUBST(ORTH_FILES)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Let people not build/install docs if they don't have docbook
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_CHECK_PROG(HASDOCBOOK, docbook2html, yes, no)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(docs, [ --disable-docs Don't build and install documentation],,enable_docs=yes)
|
||||||
|
|
||||||
|
if test "x$enable_docs" = xyes; then
|
||||||
|
if test "x$HASDOCBOOK" != xyes; then
|
||||||
|
enable_docs=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(ENABLE_DOCS, test "x$enable_docs" = xyes)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Figure out where to install documentation
|
# Figure out where to install documentation
|
||||||
#
|
#
|
||||||
|
|
|
@ -22,14 +22,25 @@ SUFFIXES=.sgml .txt .html
|
||||||
|
|
||||||
EXTRA_DIST = $(TXT) $(HTML) $(SGML)
|
EXTRA_DIST = $(TXT) $(HTML) $(SGML)
|
||||||
|
|
||||||
all-local: $(TXT) $(HTML)
|
if ENABLE_DOCS
|
||||||
|
DOCS=$(TXT) $(HTML)
|
||||||
|
all-local: all-docs
|
||||||
|
clean-local: clean-docs
|
||||||
|
install-data-local: install-docs
|
||||||
|
else
|
||||||
|
all-local:
|
||||||
clean-local:
|
clean-local:
|
||||||
rm -f $(TXT) $(HTML)
|
|
||||||
|
|
||||||
install-data-local:
|
install-data-local:
|
||||||
|
endif
|
||||||
|
|
||||||
|
all-docs: $(DOCS)
|
||||||
|
|
||||||
|
clean-docs:
|
||||||
|
rm -f $(DOCS)
|
||||||
|
|
||||||
|
install-docs:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
|
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
|
||||||
for i in $(TXT) $(HTML); do \
|
for i in $(DOCS); do \
|
||||||
echo '-- Installing'$$i ; \
|
echo '-- Installing'$$i ; \
|
||||||
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/$$i; \
|
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR)/$$i; \
|
||||||
done
|
done
|
||||||
|
|
|
@ -25,10 +25,6 @@ libfontconfig_la_SOURCES = \
|
||||||
fcstr.c \
|
fcstr.c \
|
||||||
fcxml.c
|
fcxml.c
|
||||||
|
|
||||||
man_MANS = fontconfig.3
|
|
||||||
|
|
||||||
EXTRA_DIST = $(man_MANS)
|
|
||||||
|
|
||||||
lib_LTLIBRARIES = libfontconfig.la
|
lib_LTLIBRARIES = libfontconfig.la
|
||||||
|
|
||||||
libfontconfig_la_LDFLAGS = \
|
libfontconfig_la_LDFLAGS = \
|
||||||
|
|
Loading…
Reference in New Issue