diff options
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: |