swanctl: Generate man page snippet with config options

This commit is contained in:
Tobias Brunner
2014-05-07 15:48:16 +02:00
committed by Martin Willi
parent e20deeca77
commit 6a461f0852
+7 -3
View File
@@ -29,15 +29,19 @@ AM_CPPFLAGS = \
-DSWANCTLDIR=\""${swanctldir}\"" \ -DSWANCTLDIR=\""${swanctldir}\"" \
-DPLUGINS=\""${s_plugins}\"" -DPLUGINS=\""${s_plugins}\""
BUILT_SOURCES = swanctl.conf BUILT_SOURCES = swanctl.conf swanctl.conf.5.main
EXTRA_DIST = swanctl.opt swanctl.conf EXTRA_DIST = swanctl.opt swanctl.conf swanctl.conf.5.main
.opt.conf: .opt.conf:
$(AM_V_GEN) \ $(AM_V_GEN) \
$(PYTHON) $(top_srcdir)/conf/format-options.py -f conf $< > $(srcdir)/$@ $(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: maintainer-clean-local:
cd $(srcdir) && rm -f swanctl.conf cd $(srcdir) && rm -f swanctl.conf swanctl.conf.5.main
install-data-local: swanctl.conf install-data-local: swanctl.conf
test -e "$(DESTDIR)$(swanctldir)" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)" test -e "$(DESTDIR)$(swanctldir)" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)"