summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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: