summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-11 05:15:20 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-11 05:15:20 +0200
commitbda44e93541fa478abf3ce4b3461f026a90fa8cb (patch)
treea62a7e1d456effe914a77b45f66485c3e8bfd92d /Makefile
parentced3ed9ddde25614bbc9777a5d546eee2a44a2e0 (diff)
Move the site from HTML to GSP
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index e45abb9..3a461bb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
.PHONY: check clean serve
-gendeps = ${filter-out %/index.html,${wildcard ${1}/*}}
+gendeps = ${filter-out %/index.gsp,${wildcard ${1}/*}}
includes := ${wildcard include/*}
srcdirs := ${shell find src -type d}
outdirs := ${srcdirs:src%=out%}
-sources := ${shell find src -type f -regextype egrep -regex '.*/(index\.html|.*\.(css|svg|png|dot))'}
+sources := ${shell find src -type f -regextype egrep -regex '.*/(index\.gsp|.*\.(css|svg|png|dot))'}
outputs := ${sources:src/%=out/%}
+outputs := ${outputs:%.gsp=%.html}
outputs := ${outputs:%.dot=%.svg}
all: ${outdirs} ${outputs} fonts
@@ -24,21 +25,22 @@ out/%.svg: src/%.dot
@dot -Tsvg $< >$@
@printf 'DOT\t%s\n' "$@"
-out/%.html: src/%.html ${includes} src/style.css
- @PATH="$$PATH:./include" m4 -P ${foreach dir,${^D},-I${dir}} include/lib.m4 $< >$@
- @printf 'M4\t%s\n' "$@"
+out/%.html: src/%.gsp ${includes} src/style.css
+ @PATH="$$PATH:./include" \
+ m4 -P ${foreach dir,${^D},-I${dir}} include/lib.m4 $< | gsp >$@
+ @printf 'GSP\t%s\n' "$@"
-src/srp/fw-ec/index.html: ${call gendeps,src/srp/fw-ec}
+src/srp/fw-ec/index.gsp: ${call gendeps,src/srp/fw-ec}
@touch $@
-src/prj/mmv/index.html: ${call gendeps,src/prj/mmv}
+src/prj/mmv/index.gsp: ${call gendeps,src/prj/mmv}
@touch $@
-src/prj/mkpass/index.html: ${call gendeps,src/prj/mkpass}
+src/prj/mkpass/index.gsp: ${call gendeps,src/prj/mkpass}
@touch $@
-src/prj/totp/index.html: ${call gendeps,src/prj/totp}
+src/prj/totp/index.gsp: ${call gendeps,src/prj/totp}
@touch $@
check:
- LANG=en_US.UTF-8 find src -name 'index.html' -exec \
+ LANG=en_US.UTF-8 find src -name 'index.gsp' -exec \
aspell --home-dir=./ --ignore-case check {} \;
clean: