# HG changeset patch # User ladanyi # Date 1118776694 0 # Node ID 6ea6d0d789c63c57b7bd65b2da95b778145dfd30 # Parent 5f87111056b80e04a602398fb0b7eebddd616606 added macro for setting the name of the directory under datadir/doc diff -r 5f87111056b8 -r 6ea6d0d789c6 Makefile.am --- a/Makefile.am Tue Jun 14 16:56:37 2005 +0000 +++ b/Makefile.am Tue Jun 14 19:18:14 2005 +0000 @@ -4,6 +4,7 @@ LICENSE \ lemon.spec \ autopackage/default.apspec.in \ + config/lx_docdir_suffix.m4 \ config/cxxflags.m4 \ config/lp.m4 \ config/misc.m4 diff -r 5f87111056b8 -r 6ea6d0d789c6 config/lx_docdir_suffix.m4 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config/lx_docdir_suffix.m4 Tue Jun 14 19:18:14 2005 +0000 @@ -0,0 +1,16 @@ +AC_DEFUN([LX_DOCDIR_SUFFIX], +[ + AC_ARG_WITH([docsuffix], +AS_HELP_STRING([--with-docsuffix=DOCSUFFIX], [install the documentation under datadir/doc/DOCSUFFIX]), + [], [with_docsuffix=no]) + + AC_MSG_CHECKING([for the value of DOCSUFFIX]) + if test x"$with_docsuffix" != x"no"; then + DOCSUFFIX="$with_docsuffix" + else + DOCSUFFIX="$PACKAGE_TARNAME-$PACKAGE_VERSION" + fi + AC_MSG_RESULT([$DOCSUFFIX]) + + AC_SUBST(DOCSUFFIX) +]) diff -r 5f87111056b8 -r 6ea6d0d789c6 configure.ac --- a/configure.ac Tue Jun 14 16:56:37 2005 +0000 +++ b/configure.ac Tue Jun 14 19:18:14 2005 +0000 @@ -29,6 +29,7 @@ LX_CHECK_GLPK LX_CHECK_CPLEX +LX_DOCDIR_SUFFIX LX_ENABLE_DOCS LX_ENABLE_GUI @@ -81,7 +82,7 @@ echo echo The documentation will be installed in echo -n ' ' -eval eval eval echo ${datadir}/doc/$PACKAGE-$VERSION/html/index.html. +eval echo ${datadir}/doc/$DOCSUFFIX. echo echo '*********************************************************************' diff -r 5f87111056b8 -r 6ea6d0d789c6 doc/Makefile.am --- a/doc/Makefile.am Tue Jun 14 16:56:37 2005 +0000 +++ b/doc/Makefile.am Tue Jun 14 19:18:14 2005 +0000 @@ -1,28 +1,16 @@ -## TODO: Doxyfile should be generated from Doxyfile.in by configure. This way -## the value of PROJECT_NAME, PROJRCT_NUMBER, PERL_PATH, etc. could be -## substituted in configure-time. - -htmldir = $(datadir)/doc/@PACKAGE@-@VERSION@/html -## htmldir = $(pkgdatadir)/doc +htmldir = $(datadir)/doc/$(DOCSUFFIX)/html EXTRA_DIST = html icons mainpage.dox getstart.dox quicktour.dox \ demoprograms.dox graphs.dox undir_graphs.dox named-param.dox \ maps.dox coding_style.dox groups.dox namespaces.dox license.dox \ developers_interface.dox graph_io.dox dirs.dox graph-adaptors.dox - -## all-local: html/index.html - -## TODO: 'html/index.html' should depend on the files listed in Doxyfile's -## INPUT variable. html/index.html: if test ${doxygen_found} = yes; then \ doxygen Doxyfile; \ cp $(srcdir)/icons/geom/ftv2* html; \ fi -## This is needed to make 'make dist' work even if the 'html' subdirectory -## does not exist. html: html/index.html clean-local: