Skip to content
Snippets Groups Projects
Commit b2d06154 authored by Christian Feld's avatar Christian Feld
Browse files

Customize distribution and installation

doxygen creates documentation at make dist, copies it to tarball and
extracts it at make install. Thus user doens't need to have (specific
version) of doxygen.
parent e31a69ca
Branches
No related tags found
No related merge requests found
...@@ -26,3 +26,28 @@ libfoo_la_SOURCES = src/foo.c ...@@ -26,3 +26,28 @@ libfoo_la_SOURCES = src/foo.c
include_HEADERS = src/foo.h include_HEADERS = src/foo.h
EXTRA_DIST += doc/documentation.md EXTRA_DIST += doc/documentation.md
dist-hook: doxygen-2-dist
if HAVE_DOXYGEN
doxygen-2-dist:
$(DOXYGEN) doc/doxyfile
tar czf doxygen.tar.gz doxygen/
cp doxygen.tar.gz $(distdir)/doc
rm -rf doxygen doxygen.tar.gz
else !HAVE_DOXYGEN
doxygen-2-dist:
endif !HAVE_DOXYGEN
install-data-hook: doxygen-install
doxygen-install:
if test -e $(srcdir)/doc/doxygen.tar.gz; then \
$(MKDIR_P) $(DESTDIR)$(docdir); \
$(INSTALL_DATA) $(srcdir)/doc/doxygen.tar.gz $(DESTDIR)$(docdir)/; \
cd $(DESTDIR)$(docdir); \
tar xzf doxygen.tar.gz; \
rm -f doxygen.tar.gz; \
fi
uninstall-hook: doxygen-uninstall
doxygen-uninstall:
rm -rf $(DESTDIR)$(docdir)/doxygen
...@@ -15,6 +15,10 @@ LT_INIT ...@@ -15,6 +15,10 @@ LT_INIT
LIBPAPI LIBPAPI
AC_CHECK_PROG([DOXYGEN], [doxygen], [`which doxygen`])
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([doc/doxyfile])])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([Makefile])
AC_OUTPUT AC_OUTPUT
# @configure_input@
# Doxyfile 1.8.10
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
# ...
PROJECT_NAME = "@PACKAGE@"
PROJECT_NUMBER = @PACKAGE_VERSION@
INPUT = @abs_top_srcdir@
OUTPUT_DIRECTORY = doxygen
QUIET = YES
# ...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment