summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-15 14:57:32 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-15 14:57:32 +0200
commitd5635e946e9df6f519ec8cf08cebfc35dbe6c788 (patch)
tree46893cffdf23a2b15f8b7839c69d5df2bcbb8bca /Makefile
parentcfa35dcb2d332977e80a5811b6d42e9949bd4814 (diff)
Add a post on ‘mmv’
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 13074ae..2eb506a 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,9 @@ gendeps = ${filter-out %/index.html,${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))'}
+sources := ${shell find src -type f -regextype egrep -regex '.*/(index\.html|.*\.(css|svg|png|dot))'}
outputs := ${sources:src/%=out/%}
+outputs := ${outputs:%.dot=%.svg}
all: ${outdirs} ${outputs}
@@ -17,12 +18,17 @@ out/%: src/%
@cp $< $@
@printf 'CP\t%s\n' "$@"
+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' "$@"
src/srp/fw-ec/index.html: ${call gendeps,src/srp/fw-ec}
@touch $@
+src/prj/mmv/index.html: ${call gendeps,src/prj/mmv}
@touch $@
check: