chiark / gitweb /
man: make building of man pages optional
authorLennart Poettering <lennart@poettering.net>
Fri, 10 Feb 2012 20:44:14 +0000 (21:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Feb 2012 20:44:14 +0000 (21:44 +0100)
Makefile.am
configure.ac

index 122acfad9002dbb0e7b34752b9e7c57267d7d5e4..06104514c39addb16401b59ed2f7e8fbcae386de 100644 (file)
@@ -651,6 +651,7 @@ EXTRA_DIST += \
        src/acl-util.h \
        src/logs-show.h
 
+if ENABLE_MANPAGES
 MANPAGES = \
        man/systemd.1 \
        man/systemctl.1 \
@@ -724,6 +725,8 @@ EXTRA_DIST += \
        ${nodist_man_MANS:=.in} \
        ${XML_IN_FILES:.xml.in=.html.in}
 
+endif
+
 systemd_SOURCES = \
        src/main.c
 
@@ -1132,6 +1135,7 @@ lib_LTLIBRARIES += \
 pkgconfiglib_DATA += \
        src/libsystemd-daemon.pc
 
+if ENABLE_MANPAGES
 MANPAGES += \
        man/sd-daemon.7 \
        man/sd_notify.3 \
@@ -1151,6 +1155,7 @@ man/sd_is_socket_unix.3: man/sd_is_fifo.3
 man/sd_is_socket_inet.3: man/sd_is_fifo.3
 man/sd_is_mq.3: man/sd_is_fifo.3
 man/sd_notifyf.3: man/sd_notify.3
+endif
 
 EXTRA_DIST += \
        src/libsystemd-daemon.pc.in \
@@ -1466,8 +1471,10 @@ binfmt-install-data-hook:
 INSTALL_DATA_HOOKS += \
        binfmt-install-data-hook
 
+if ENABLE_MANPAGES
 MANPAGES += \
        man/binfmt.d.5
+endif
 
 EXTRA_DIST += \
        units/systemd-binfmt.service.in
@@ -1497,8 +1504,10 @@ vconsole-install-data-hook:
 INSTALL_DATA_HOOKS += \
        vconsole-install-data-hook
 
+if ENABLE_MANPAGES
 MANPAGES += \
        man/vconsole.conf.5
+endif
 
 EXTRA_DIST += \
        units/systemd-vconsole-setup.service.in
@@ -1551,10 +1560,12 @@ EXTRA_DIST += \
        units/systemd-readahead-replay.service.in \
        units/systemd-readahead-done.service.in
 
+if ENABLE_MANPAGES
 MANPAGES += \
        man/sd_readahead.3 \
        man/sd-readahead.7
 endif
+endif
 
 # ------------------------------------------------------------------------------
 if ENABLE_QUOTACHECK
@@ -2045,6 +2056,7 @@ dist_udevrules_DATA += \
 nodist_udevrules_DATA += \
        src/login/73-seat-late.rules
 
+if ENABLE_MANPAGES
 MANPAGES += \
        man/systemd-logind.conf.5 \
        man/sd-login.7 \
@@ -2086,6 +2098,7 @@ man/sd_seat_get_sessions.3: man/sd_seat_get_active.3
 man/sd_seat_can_multi_session.3: man/sd_seat_get_active.3
 man/sd_get_sessions.3: man/sd_get_seats.3
 man/sd_get_uids.3: man/sd_get_seats.3
+endif
 
 EXTRA_DIST += \
        src/login/logind-gperf.gperf \
index 0ad2b6aa67f439cab4f92b1c35b134a8a3243fb5..af48f1ce72db2535ebf74e9ca744c26b8dff0b69 100644 (file)
@@ -363,6 +363,13 @@ if test "x$enable_coredump" != "xno"; then
 fi
 AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
 
+have_manpages=no
+AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpage], [disable manpages]))
+if test "x$enable_manpages" != "xno"; then
+       have_manpages=yes
+fi
+AM_CONDITIONAL(ENABLE_MANPAGES, [test "$have_manpages" = "yes"])
+
 have_gtk=no
 AC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
 if test "x$enable_gtk" != "xno"; then
@@ -653,4 +660,5 @@ AC_MSG_RESULT([
         D-Bus system dir:        ${with_dbussystemservicedir}
         D-Bus interfaces dir:    ${with_dbusinterfacedir}
         Split /usr:              ${have_split_usr}
+        Build man pages:         ${have_manpages}
 ])