summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
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: