Integrated --enable-docs configure switch
This commit is contained in:
parent
cca62cd953
commit
c20825a875
@ -142,6 +142,7 @@ cdrskin_cdrskin_SOURCES = cdrskin/cdrskin.c cdrskin/cdrfifo.c cdrskin/cdrfifo.h
|
|||||||
## Build documentation (You need Doxygen for this to work)
|
## Build documentation (You need Doxygen for this to work)
|
||||||
webhost = http://libburn-api.pykix.org
|
webhost = http://libburn-api.pykix.org
|
||||||
webpath = /
|
webpath = /
|
||||||
|
docdir = $(DESTDIR)$(prefix)/share/doc/$(PACKAGE)-$(VERSION)
|
||||||
|
|
||||||
docdeps = \
|
docdeps = \
|
||||||
doc/doxygen.conf \
|
doc/doxygen.conf \
|
||||||
@ -153,13 +154,24 @@ docdeps = \
|
|||||||
doc: doc/html
|
doc: doc/html
|
||||||
|
|
||||||
doc/html: $(docdeps)
|
doc/html: $(docdeps)
|
||||||
$(RM) -r $@
|
if [ -f ./doc/doc.lock ]; then \
|
||||||
doxygen doc/doxygen.conf
|
$(RM) -r doc/html; \
|
||||||
|
doxygen doc/doxygen.conf; \
|
||||||
|
fi
|
||||||
|
|
||||||
doc-upload: doc/html
|
doc-upload: doc/html
|
||||||
scp -r $</* $(webhost):$(webpath)
|
scp -r $</* $(webhost):$(webpath)
|
||||||
|
|
||||||
.PHONY: doc
|
all: doc
|
||||||
|
|
||||||
|
install-data-local:
|
||||||
|
if [ -f ./doc/doc.lock ]; then \
|
||||||
|
$(mkinstalldirs) $(docdir)/html; \
|
||||||
|
$(INSTALL_DATA) doc/html/* $(docdir)/html; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
uninstall-local:
|
||||||
|
rm -rf $(docdir)
|
||||||
|
|
||||||
## ========================================================================= ##
|
## ========================================================================= ##
|
||||||
|
|
||||||
|
@ -93,6 +93,23 @@ else
|
|||||||
CFLAGS="$CFLAGS -DDEBUG"
|
CFLAGS="$CFLAGS -DDEBUG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([if we build the HTML documentation])
|
||||||
|
AC_ARG_ENABLE(docs,
|
||||||
|
[ --enable-docs Use doxygen to build HTML documentation],
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) build_docs=true ;;
|
||||||
|
no) build_docs=false ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-docs) ;;
|
||||||
|
esac],[build_docs=false])
|
||||||
|
|
||||||
|
if test "x$build_docs" = "xtrue"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
touch doc/doc.lock
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no (use --enable-docs to enable)])
|
||||||
|
rm -f doc/doc.lock
|
||||||
|
fi
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
doc/doxygen.conf
|
doc/doxygen.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user