From: Alan T. DeKok Date: Mon, 3 Feb 2025 13:57:38 +0000 (-0500) Subject: complain if antora doesn't exist X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69dbf734d045f69e9c19e97984918226eb27e200;p=thirdparty%2Ffreeradius-server.git complain if antora doesn't exist --- diff --git a/doc/all.mk b/doc/all.mk index 2d281449888..7b69553fbe8 100644 --- a/doc/all.mk +++ b/doc/all.mk @@ -210,16 +210,19 @@ doc/antora/modules/reference/pages/raddb/%.adoc: raddb/% doc.raddb: $(patsubst raddb/%,doc/antora/modules/reference/pages/raddb/%.adoc,$(CONF_FILES)) # -# antora rebuilds the entire documentation site on each run -# so we need to pick a single file to compare dependency -# timestamps against. -# -# we use sitemap.xml as it'll be regenerated on every antora -# run. +# We re-run antora if any of the input files change. Antora can't do partial updates. # +ifneq "$(ANTORA)" "" build/docsite/sitemap.xml: $(ADOC_FILES) @echo ANTORA site.yml ${Q}$(ANTORA) $(ANTORA_FLAGS) site.yml +else +.PHONY: build/docsite/sitemap.xml +build/docsite/sitemap.xml: $(ADOC_FILES) + @echo No antora is installed + false +endif + # # Only re-build the adoc files if specifically told to.