]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
complain if antora doesn't exist
authorAlan T. DeKok <aland@freeradius.org>
Mon, 3 Feb 2025 13:57:38 +0000 (08:57 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 5 Feb 2025 17:54:55 +0000 (12:54 -0500)
doc/all.mk

index 2d281449888a1e7056bf2816e95d26295cb471e3..7b69553fbe8e0d22a5ae6eb3cd9379dec84fc2c9 100644 (file)
@@ -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.