From: Alan T. DeKok Date: Wed, 23 Aug 2023 14:15:29 +0000 (-0400) Subject: add rule to make adoc file from configuration X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=154b443f01c751d1b5c28382287c489fe1b75d01;p=thirdparty%2Ffreeradius-server.git add rule to make adoc file from configuration --- diff --git a/doc/all.mk b/doc/all.mk index e1063abd367..a4280c417a2 100644 --- a/doc/all.mk +++ b/doc/all.mk @@ -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