summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-07-30 22:36:23 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-07-30 22:40:43 +0200
commit209a3b690107c2f173c6ff40579b66fd92c1cc0e (patch)
treebaf7d01aea710880c268e69cba1296628f9811fa
parentc5cc87803145eaa5c500bd0f8be12a76f7858ecf (diff)
Make srp/fw-ec/index.html depend on dynamic deps
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 85414f6..df713e2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
.PHONY: check clean serve
+gendeps = ${filter-out %/index.html,${wildcard ${1}/*}}
includes := ${wildcard include/*}
srcdirs := ${shell find src -type d}
outdirs := ${srcdirs:src%=out%}
@@ -20,7 +21,8 @@ out/%.html: src/%.html ${includes}
@m4 -P ${foreach dir,${^D},-I${dir}} include/lib.m4 $< >$@
@printf 'M4\t%s\n' "$@"
-src/srp/fw-ec/index.html: src/srp/fw-ec/led.diff.html
+src/srp/fw-ec/index.html: ${call gendeps,src/srp/fw-ec}
+ @touch $@
@touch $@
check: