summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilippo Giunchedi <filippo@esaurito.net>2009-11-06 16:05:39 (GMT)
committer Filippo Giunchedi <filippo@esaurito.net>2009-11-08 13:04:00 (GMT)
commit7b2ff52baf606cfce6b14cdd83126f4a826f95b0 (patch)
treed8ce19a510932b68fe72a4707effc2456272c1e1
parent09cc62cc5e97ae8b660be96b746941599e17e5ce (diff)
recursive makefile for doc/
-rw-r--r--Makefile.am28
-rw-r--r--configure.ac1
-rw-r--r--doc/Makefile.am20
-rw-r--r--doc/muse.doxygen.in4
4 files changed, 26 insertions, 27 deletions
diff --git a/Makefile.am b/Makefile.am
index 82bdfd0..eb9137b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,8 +1,5 @@
-if BUILD_DOC
-DOCSDIR = doc
-endif
-SUBDIRS = lib/libmpeg src/ncursesgui $(DOCSDIR)
+SUBDIRS = lib/libmpeg src/ncursesgui
dist_docs_DATA = README COPYING AUTHORS NEWS KNOWN-BUGS ChangeLog TODO USAGE
docsdir = ${prefix}/share/doc/${PACKAGE}
@@ -145,3 +142,26 @@ noinst_HEADERS += \
src/gtkgui2/xmlprofile.h
EXTRA_DIST += src/gtkgui2/xpm2
+
+
+## doc/
+EXTRA_DIST += doc/muse.doxygen.in
+if BUILD_DOC
+installdest = $(DESTDIR)$(docdir)/
+
+doc/html/index.html: doc/muse.doxygen
+ $(DOXYGEN) doc/muse.doxygen
+
+noinst_DATA = doc/html/index.html
+
+install-data-local:
+ $(INSTALL) -d $(installdest)
+ (cd doc && for d in `find html -type d`; do $(INSTALL) -m755 -d $(installdest)/$$d; done)
+ (cd doc && for f in `find html -type f`; do $(INSTALL) -m644 $$f $(installdest)/$$f; done)
+
+uninstall-local:
+ rm -rf $(installdest)/html
+
+clean-local:
+ rm -rf doc/html doc/latex doc/rtf doc/man
+endif
diff --git a/configure.ac b/configure.ac
index 23db4d8..f8dcd50 100644
--- a/configure.ac
+++ b/configure.ac
@@ -419,7 +419,6 @@ lib/libmpeg/Makefile
lib/portaudio/Makefile
src/ncursesgui/Makefile
src/ncursesgui/libcdk/Makefile
-doc/Makefile
doc/muse.doxygen
])
AC_OUTPUT
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644
index 20e394b..0000000
--- a/doc/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-EXTRA_DIST = muse.doxygen.in
-
-installdest = $(DESTDIR)$(docdir)/
-htmlbuild = html
-
-$(htmlbuild)/index.html: muse.doxygen
- $(DOXYGEN) muse.doxygen
-
-noinst_DATA = $(htmlbuild)/index.html
-
-install-data-local:
- $(INSTALL) -d $(installdest)
- for d in `find $(htmlbuild) -type d`; do $(INSTALL) -m755 -d $(installdest)/$$d; done
- for f in `find $(htmlbuild) -type f`; do $(INSTALL) -m644 $$f $(installdest)/$$f; done
-
-uninstall-local:
- rm -rf $(installdest)/$(htmlbuild)/
-
-clean-local:
- rm -rf html latex rtf man
diff --git a/doc/muse.doxygen.in b/doc/muse.doxygen.in
index 064bd9c..fff2968 100644
--- a/doc/muse.doxygen.in
+++ b/doc/muse.doxygen.in
@@ -38,7 +38,7 @@ PROJECT_NUMBER = @PACKAGE_VERSION@
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
-OUTPUT_DIRECTORY =
+OUTPUT_DIRECTORY = doc/
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
# 4096 sub-directories (in 2 levels) under the output directory of each output
@@ -568,7 +568,7 @@ WARN_LOGFILE =
# directories like "/usr/src/myproject". Separate the files or directories
# with spaces.
-INPUT = @top_srcdir@/src
+INPUT = @abs_top_srcdir@/src
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is