contrib/static-html: find static html files by comment

This commit is contained in:
Christian Hesse 2025-11-18 18:53:29 +01:00
parent c5c9f869d2
commit 7f0da6311b
4 changed files with 6 additions and 3 deletions

View file

@ -1,10 +1,10 @@
# Makefile
HTML := $(wildcard *.html)
STATIC_HTML := $(shell grep -xl '<!-- static html //-->' *.html)
.PHONY: all docs
all: docs
docs: static-html.sh $(HTML)
./static-html.sh $(HTML)
docs: static-html.sh $(STATIC_HTML)
./static-html.sh $(STATIC_HTML)