summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-07-30 04:28:43 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-07-30 04:28:43 +0200
commit54fea2f2a3ee0e6b027cd8be0a8a5a89872a8633 (patch)
treea79be8810092ee5ef08ba19b3616bee8c10481e6 /Makefile
parent5b4d4b3400acdace76f5970849fcb7f9cefd2c4d (diff)
Try out using m4 for footers
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index da2a9b6..b670d3d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,10 @@
.PHONY: check clean serve
-srcdirs := ${shell find src -type d}
-outdirs := ${srcdirs:src%=out%}
-sources := ${shell find src -type f -name 'index.html' -or -name '*.css' -or -name '*.svg'}
-outputs := ${sources:src/%=out/%}
+includes := ${wildcard include/*}
+srcdirs := ${shell find src -type d}
+outdirs := ${srcdirs:src%=out%}
+sources := ${shell find src -type f -name 'index.html' -or -name '*.css' -or -name '*.svg'}
+outputs := ${sources:src/%=out/%}
all: ${outdirs} ${outputs}
@@ -15,8 +16,8 @@ out/%: src/%
@cp $< $@
@printf 'CP\t%s\n' "$@"
-out/%.html: src/%.html include/head.html
- @m4 -P ${foreach dir,${^D},-I${dir}} $< >$@
+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