swanctl: Generate man page snippet with config options
authorTobias Brunner <tobias@strongswan.org>
Thu, 17 Apr 2014 17:15:10 +0000 (19:15 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 7 May 2014 13:48:16 +0000 (15:48 +0200)
src/swanctl/Makefile.am

index 3ed47fe..f899c97 100644 (file)
@@ -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)"