]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build-sys: Add --disable-manpages option
authorColin Walters <walters@verbum.org>
Mon, 30 Jul 2012 16:27:10 +0000 (12:27 -0400)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 31 Jul 2012 12:45:59 +0000 (09:45 -0300)
1) Embedded systems often don't want man pages on the
   target; rather than pointlessly building them, then ignoring
   the result, allow just not building them at all
2) When bootstrapping an operating systems, documentation is the
   source of many cyclical dependencies, and allowing it to
   be explicitly disabled is useful for earlier build passes.

Makefile.am
configure.ac

index 26f32cd6c0477e035c8eeb85cf8ac3750bf1100d..bc95922bd129b6e2f8b0d226e6636984db6d135e 100644 (file)
@@ -1,4 +1,8 @@
-SUBDIRS = . libkmod/docs man
+SUBDIRS = . libkmod/docs
+
+if BUILD_MANPAGES
+SUBDIRS += man
+endif
 
 DISTCLEAN_LOCAL_HOOKS =
 EXTRA_DIST =
index 8a4a063d10afe423e5505cfd504aec8b4c939047..da8cd5736f37fe5930e4109bceea60f6be640686 100644 (file)
@@ -89,6 +89,11 @@ AC_ARG_ENABLE([tools],
        [], enable_tools=yes)
 AM_CONDITIONAL([BUILD_TOOLS], [test "x$enable_tools" = "xyes"])
 
+AC_ARG_ENABLE([manpages],
+        AS_HELP_STRING([--disable-manpages], [disable manpages @<:@default=enabled@:>@]),
+       [], enable_manpages=yes)
+AM_CONDITIONAL([BUILD_MANPAGES], [test "x$enable_manpages" = "xyes"])
+
 AC_ARG_ENABLE([logging],
        AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),
        [], enable_logging=yes)