From 6a461f0852f4a918095a276312dcd45ac107c8f8 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 17 Apr 2014 19:15:10 +0200 Subject: [PATCH] swanctl: Generate man page snippet with config options --- src/swanctl/Makefile.am | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/swanctl/Makefile.am b/src/swanctl/Makefile.am index 3ed47fe844..f899c97f4a 100644 --- a/src/swanctl/Makefile.am +++ b/src/swanctl/Makefile.am @@ -29,15 +29,19 @@ AM_CPPFLAGS = \ -DSWANCTLDIR=\""${swanctldir}\"" \ -DPLUGINS=\""${s_plugins}\"" -BUILT_SOURCES = swanctl.conf -EXTRA_DIST = swanctl.opt swanctl.conf +BUILT_SOURCES = swanctl.conf swanctl.conf.5.main +EXTRA_DIST = swanctl.opt swanctl.conf swanctl.conf.5.main .opt.conf: $(AM_V_GEN) \ $(PYTHON) $(top_srcdir)/conf/format-options.py -f conf $< > $(srcdir)/$@ +swanctl.conf.5.main: swanctl.opt + $(AM_V_GEN) \ + $(PYTHON) $(top_srcdir)/conf/format-options.py -f man $< > $(srcdir)/$@ + maintainer-clean-local: - cd $(srcdir) && rm -f swanctl.conf + cd $(srcdir) && rm -f swanctl.conf swanctl.conf.5.main install-data-local: swanctl.conf test -e "$(DESTDIR)$(swanctldir)" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)" -- 2.47.2