From 7f62b7d02dd227042c71d1ee281fefe81b56efbd Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 29 Jan 2014 13:24:16 +0100 Subject: [PATCH] conf: Generate groff snippet for configuration options --- conf/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/conf/Makefile.am b/conf/Makefile.am index 80dffc025..5f88815a5 100644 --- a/conf/Makefile.am +++ b/conf/Makefile.am @@ -22,9 +22,9 @@ charonconf_DATA = $(plugins_install_src) man_MANS = \ strongswan.conf.5 -BUILT_SOURCES = default.conf $(confsnippets) +BUILT_SOURCES = default.conf strongswan.conf.5.main $(confsnippets) EXTRA_DIST = format-options.py strongswan.conf default.opt \ - default.conf $(alloptions) $(confsnippets) + default.conf strongswan.conf.5.main $(alloptions) $(confsnippets) CLEANFILES=$(man_MANS) @@ -54,6 +54,10 @@ $(plugins_install_tmp): -e "s:\@PLUGIN_NAME\@:`basename $< .tmp`:" \ $(srcdir)/$< > $(srcdir)/$@ +strongswan.conf.5.main: $(alloptions) + $(AM_V_GEN) \ + $(PYTHON) $(srcdir)/format-options.py -f man $^ > $@ + maintainer-clean-local: cd $(srcdir) && \ rm -f $(confsnippets) default.conf plugins/*.conf plugins/*.tmp