conf: Generate groff snippet for configuration options
authorTobias Brunner <tobias@strongswan.org>
Wed, 29 Jan 2014 12:24:16 +0000 (13:24 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 12 Feb 2014 13:34:33 +0000 (14:34 +0100)
conf/Makefile.am

index 80dffc0..5f88815 100644 (file)
@@ -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