build: Add --disable-doc option. master
authorDamien Goutte-Gattat <dgouttegattat@incenp.org>
Tue, 20 Nov 2018 12:48:43 +0000 (12:48 +0000)
committerDamien Goutte-Gattat <dgouttegattat@incenp.org>
Sun, 10 Feb 2019 20:19:09 +0000 (20:19 +0000)
* configure.ac (BUILD_DOC): Add new am_conditional.
* Makefile.am: Skip doc subdir if BUILD_DOC is not set.

GnuPG-bug-id: 4263
Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>.
Makefile.am
configure.ac

index b8fd0e1..5d3e3d5 100644 (file)
@@ -88,10 +88,16 @@ else
 pinentry_efl =
 endif
 
+if BUILD_DOC
+doc = doc
+else
+doc =
+endif
+
 SUBDIRS = m4 secmem pinentry ${pinentry_curses} ${pinentry_tty} \
        ${pinentry_emacs} ${pinentry_gtk_2} ${pinentry_gnome_3} \
        ${pinentry_qt} ${pinentry_tqt} ${pinentry_w32} \
-       ${pinentry_fltk} ${pinentry_efl} doc
+       ${pinentry_fltk} ${pinentry_efl} ${doc}
 
 
 install-exec-local:
index 51a2313..a4d54da 100644 (file)
@@ -754,6 +754,12 @@ AH_BOTTOM([
 #endif /*GNUPG_CONFIG_H_INCLUDED*/
 ])
 
+build_doc=yes
+AC_ARG_ENABLE([doc], AC_HELP_STRING([--disable-doc],
+                                    [do not build the documentation]),
+                     build_doc=$enableval, build_doc=yes)
+AM_CONDITIONAL([BUILD_DOC], [test "x$build_doc" != xno])
+
 
 AC_CONFIG_FILES([
 m4/Makefile