]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add rule to make adoc file from configuration
authorAlan T. DeKok <aland@freeradius.org>
Wed, 23 Aug 2023 14:15:29 +0000 (10:15 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 23 Aug 2023 14:15:29 +0000 (10:15 -0400)
doc/all.mk

index e1063abd3670dfa1462ed97f91a42a93fe665da1..a4280c417a23229e38821205ddcf74b7314e5ed6 100644 (file)
@@ -198,6 +198,16 @@ all.doc: doxygen
 endif
 endif
 
+#
+#  Conf files get converted to Asciidoc via our own magic script.
+#
+doc/antora/modules/raddb/pages/%.adoc: raddb/%
+       @echo ADOC $^
+       ${Q}mkdir -p $(dir $@)
+       ${Q}perl -pi -e 's/^# ([^ \t])/#  $$1/;s/^([ \t]+)# ([^ \t])/$$1#  $$2/;s/[ \t]+$$//' $^
+       ${Q}./scripts/asciidoc/conf2adoc -t -a ${top_srcdir}/asciidoc -o $@ < $^
+
+
 #
 #  antora rebuilds the entire documentation site on each run
 #  so we need to pick a single file to compare dependency