1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
diff -ruN libindicate-0.4.4.orig/Makefile.am libindicate-0.4.4/Makefile.am
--- libindicate-0.4.4.orig/Makefile.am 2010-06-02 21:06:51.000000000 +0200
+++ libindicate-0.4.4/Makefile.am 2011-04-13 01:06:13.763221971 +0200
@@ -1,11 +1,15 @@
+if WANT_DOC
+DOC_SUBDIR = docs
+endif
+
SUBDIRS = \
libindicate \
libindicate-gtk \
bindings \
examples \
tests \
- docs
+ $(DOC_SUBDIR)
EXTRA_DIST = \
COPYING.LGPL.2.1 \
diff -ruN libindicate-0.4.4.orig/configure.ac libindicate-0.4.4/configure.ac
--- libindicate-0.4.4.orig/configure.ac 2010-09-15 18:24:09.000000000 +0200
+++ libindicate-0.4.4/configure.ac 2011-04-13 01:07:01.744221988 +0200
@@ -171,8 +171,18 @@
# GTK Doc
###########################
+AC_ARG_ENABLE([doc],
+ AC_HELP_STRING([--disable-doc], [Disable doc generation]),
+ [enable_doc=$enableval], [enable_doc=auto])
+AM_CONDITIONAL([WANT_DOC], [test "x$enable_doc" != "xno"])
+
GTK_DOC_CHECK([1.4])
+AS_IF([test "x$enable_doc" != "xno"],[
GNOME_DOC_INIT
+],[
+# The initialisation is still needed for certain conditionals to be defined, just make it not output any error
+GNOME_DOC_INIT(,,[:])
+])
GNOME_COMPILE_WARNINGS
##############################
|