Fix DOC_SOURCE_DIR for builddir != srcdir
authorMiloslav Trmač <mitr@redhat.com>
Tue, 9 Apr 2013 23:28:03 +0000 (01:28 +0200)
committerColin Walters <walters@verbum.org>
Fri, 12 Apr 2013 16:44:19 +0000 (12:44 -0400)
This snippet comes from gtk-doc 1.18 examples/Makefile.am; we might want
to update all of the file but that's not strictly necessary.

https://bugs.freedesktop.org/show_bug.cgi?id=63479

docs/polkit/Makefile.am

index bc9017853c750719e124ee6eae8a34a60f150b89..e0b669adb084919bde78665999e1a1f3667580a8 100644 (file)
@@ -12,8 +12,11 @@ DOC_MAIN_SGML_FILE=polkit-1-docs.xml
 # Extra options to supply to gtkdoc-scan
 SCAN_OPTIONS=--ignore-headers=config.h
 
-# The directory containing the source code. Relative to $(srcdir)
-DOC_SOURCE_DIR=../../src
+# Directories containing the source code.
+# gtk-doc will search all .c and .h files beneath these paths
+# for inline comments documenting functions and macros.
+# e.g. DOC_SOURCE_DIR=$(top_srcdir)/gtk $(top_srcdir)/gdk
+DOC_SOURCE_DIR=$(top_srcdir)/src
 
 # Used for dependencies
 HFILE_GLOB=$(top_srcdir)/src/polkit*/*.h