diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-08-15 14:57:32 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-08-15 14:57:32 +0200 |
commit | d5635e946e9df6f519ec8cf08cebfc35dbe6c788 (patch) | |
tree | 46893cffdf23a2b15f8b7839c69d5df2bcbb8bca /Makefile | |
parent | cfa35dcb2d332977e80a5811b6d42e9949bd4814 (diff) |
Add a post on ‘mmv’
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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: |