From 4bd07355abb1ad6b5463db7e7c763ea0075ebbc8 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Tue, 5 May 2020 17:39:49 +0200 Subject: configure: Add switch to disable manual pages (#413) Code copied from i3 Fixes #377 --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.am') 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)\"" \ -- cgit v1.2.3