From d5635e946e9df6f519ec8cf08cebfc35dbe6c788 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 15 Aug 2023 14:57:32 +0200 Subject: Add a post on ‘mmv’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') 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: -- cgit v1.2.3