]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
doc/Makefile: rebuild rst docs if input files change
authorFrank Lichtenheld <frank@lichtenheld.com>
Thu, 10 Feb 2022 10:44:45 +0000 (11:44 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 13 Feb 2022 13:42:33 +0000 (14:42 +0100)
For now the dependencies are statically defined, which
should be fine and is still a much better solution than
to have no dependencies.

Also delete empty example-fingerprint.rst.

(cherry picked from commit 529cc6a52fc45a1a67abb5c91819ba4fb2f631e3)
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by:
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220210104445.16767-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23747.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/Makefile.am
doc/man-sections/example-fingerprint.rst [deleted file]

index db73cef57cffd01ffc0d0e3e533122f8742e6d7e..cc9a661cdf0fe7b26cc5069ec17e6fd0d2e0cd5e 100644 (file)
@@ -23,15 +23,11 @@ build_html_pages = openvpn.8.html openvpn-examples.5.html
 dist_doc_DATA = \
        management-notes.txt gui-notes.txt
 
-dist_noinst_DATA = \
-       README.plugins interactive-service-notes.rst \
-       openvpn.8.rst \
-       openvpn-examples.5.rst \
+openvpn_sections = \
        man-sections/advanced-options.rst \
        man-sections/client-options.rst \
        man-sections/connection-profiles.rst \
        man-sections/encryption-options.rst \
-       man-sections/examples.rst \
        man-sections/generic-options.rst \
        man-sections/inline-files.rst \
        man-sections/link-options.rst \
@@ -52,6 +48,19 @@ dist_noinst_DATA = \
        man-sections/vpn-network-options.rst \
        man-sections/windows-options.rst
 
+openvpn_examples_sections = \
+       man-sections/examples.rst
+
+dist_noinst_DATA = \
+       README.plugins interactive-service-notes.rst \
+       openvpn.8.rst \
+       openvpn-examples.5.rst \
+       $(openvpn_sections) \
+       $(openvpn_examples_sections)
+
+# dependencies
+openvpn.8 openvpn.8.html: $(openvpn_sections)
+openvpn-examples.5 openvpn-examples.5.html: $(openvpn_examples_sections)
 
 ######  GENERIC  RULES  ##########
 
diff --git a/doc/man-sections/example-fingerprint.rst b/doc/man-sections/example-fingerprint.rst
deleted file mode 100644 (file)
index e69de29..0000000