summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorOrestis Floros <orestisflo@gmail.com>2020-05-05 17:39:49 +0200
committerGitHub <noreply@github.com>2020-05-05 17:39:49 +0200
commit4bd07355abb1ad6b5463db7e7c763ea0075ebbc8 (patch)
tree9976f92f58a5593018c38fb82e4878ac3f1a83ca /Makefile.am
parentae49ec4bcbb2474392851cea34d2d31a3d16eb4a (diff)
configure: Add switch to disable manual pages (#413)
Code copied from i3 Fixes #377
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 15b8ffb..b6e40f3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,6 +5,7 @@ echo-version:
bin_PROGRAMS = i3status
+if BUILD_MANS
dist_man1_MANS = \
$(asciidoc_MANS)
@@ -17,6 +18,9 @@ $(asciidoc_MANS): man/%.1: man/%.xml man/$(dirstamp)
man/%.xml: man/%.man man/asciidoc.conf man/$(dirstamp)
$(AM_V_GEN) @PATH_ASCIIDOC@ -d manpage -b docbook -f $(top_builddir)/man/asciidoc.conf -o $@ $<
+else
+asciidoc_MANS =
+endif
AM_CPPFLAGS = \
-DSYSCONFDIR="\"$(sysconfdir)\"" \