Doxygen now compiles docs when the build dir is not the src dir.
authorJustin Seyster <jseyster@cs.sunysb.edu>
Wed, 16 Mar 2011 01:12:17 +0000 (21:12 -0400)
committerJustin Seyster <jseyster@cs.sunysb.edu>
Wed, 16 Mar 2011 01:17:02 +0000 (21:17 -0400)
Doxyfile
INSTALL
README
configure.in

index a6d9b5c47fe5dd9c5ba85c190f437374048ceea8..cfd97fe9c8c191d9d990f45425eae39f7d732d5c 100644 (file)
--- a/Doxyfile
+++ b/Doxyfile
@@ -114,7 +114,7 @@ FULL_PATH_NAMES        = YES
 # If left blank the directory from which doxygen is run is used as the
 # path to strip.
 
-STRIP_FROM_PATH        =
+STRIP_FROM_PATH        = $(SRCDIR_SLASH)
 
 # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
 # the path mentioned in the documentation of a class, which tells
@@ -123,7 +123,7 @@ STRIP_FROM_PATH        =
 # definition is used. Otherwise one should specify the include paths that
 # are normally passed to the compiler using the -I flag.
 
-STRIP_FROM_INC_PATH    =
+STRIP_FROM_INC_PATH    = $(SRCDIR_SLASH)
 
 # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
 # (but less readable) file names. This can be useful is your file systems
@@ -568,7 +568,7 @@ WARN_LOGFILE           =
 # directories like "/usr/src/myproject". Separate the files or directories
 # with spaces.
 
-INPUT                  = src
+INPUT                  = $(SRCDIR_SLASH)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
@@ -625,7 +625,7 @@ EXCLUDE_SYMBOLS        = aop_argkind
 # directories that contain example code fragments that are included (see
 # the \include command).
 
-EXAMPLE_PATH           = workspace
+EXAMPLE_PATH           = $(SRCDIR_SLASH)workspace
 
 # If the value of the EXAMPLE_PATH tag contains directories, you can use the
 # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
@@ -779,13 +779,13 @@ HTML_FILE_EXTENSION    = .html
 # each generated HTML page. If it is left blank doxygen will generate a
 # standard header.
 
-HTML_HEADER            = web/doxy-header.html
+HTML_HEADER            = $(SRCDIR_SLASH)web/doxy-header.html
 
 # The HTML_FOOTER tag can be used to specify a personal HTML footer for
 # each generated HTML page. If it is left blank doxygen will generate a
 # standard footer.
 
-HTML_FOOTER            = web/doxy-footer.html
+HTML_FOOTER            = $(SRCDIR_SLASH)web/doxy-footer.html
 
 # The HTML_STYLESHEET tag can be used to specify a user-defined cascading
 # style sheet that is used by each HTML page. It can be used to
@@ -794,7 +794,7 @@ HTML_FOOTER            = web/doxy-footer.html
 # the style sheet file to the HTML output directory, so don't put your own
 # stylesheet in the HTML output directory as well, or it will be erased!
 
-HTML_STYLESHEET        = web/doxygen.css
+HTML_STYLESHEET        = $(SRCDIR_SLASH)web/doxygen.css
 
 # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
 # files or namespaces will be aligned in HTML using tables. If set to
diff --git a/INSTALL b/INSTALL
index da5940e05cecd5ae8c82677702eeb5c4a74f7fe1..dc7e35ab5d50913327810deddba6fda0e2c85317 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -143,6 +143,26 @@ normally:
 # debugging support for the InterAspect library.
 make CFLAGS='-g -O0'
 
+---
+(3a. Documentation)
+-
+
+InterAspect's public API functions are all documented with Doxygen
+comments.  You can generate HTML documentation from these comments
+with the command:
+
+make doxygen-doc
+
+If you haven't configured InterAspect, you can still generate the
+documentation by just running:
+
+doxygen
+
+The documentation for the most recent InterAspect release is available
+at the InterAspect web site:
+
+http://www.fsl.cs.sunysb.edu/interaspect/
+
 --------
 4. Building an InterAspect Plug-in
 ---
diff --git a/README b/README
index b557cb0fe1d0d8364f765d2385152b943a2ee092..64937c7bafdf6232a4c20f4e92af11486514fb56 100644 (file)
--- a/README
+++ b/README
@@ -7,7 +7,7 @@ Important files and directories:
 
   - AUTHORS: The people to contact if you need help or if you have
     feedback.
-  - docs/html/: Extensive documentation for the InterAspect API.  You
+  - doc/html/: Extensive documentation for the InterAspect API.  You
     may need to run the command
 
     doxygen
index 29f33b916995328004908ad749270333b0a47cdc..b43ad113274ea4e9b94dd51856a5369a50f30e20 100644 (file)
@@ -39,6 +39,13 @@ DX_PDF_FEATURE(OFF)
 DX_PS_FEATURE(OFF)
 DX_INIT_DOXYGEN([$PACKAGE_NAME],[Doxyfile],[doc])
 
+# HACK: We want to give the Doxygen config file the source directory
+# as an environment variable that definitely has a slash at the end.
+# That way, we can specify a file as $(SRCDIR_SLASH)filename.  If the
+# $(SRCDIR_SLASH) variable is not defined, the config file just uses
+# the current directory.
+DX_ENV_APPEND(SRCDIR_SLASH, $srcdir/)
+
 AC_CONFIG_FILES([Makefile
                  src/Makefile
                 test/Makefile