diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-08-24 07:27:19 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-08-24 07:27:19 +0200 |
commit | ea3b98ef0e8c17e5de6f1418879d6f8c50eab012 (patch) | |
tree | 93676f088699cc9484d32ec880269cab5eca2f33 /Makefile | |
parent | 06db5c0906de773c095cd9f3875395176b8988b6 (diff) | |
download | mutti-web-ea3b98ef0e8c17e5de6f1418879d6f8c50eab012.tar.gz mutti-web-ea3b98ef0e8c17e5de6f1418879d6f8c50eab012.tar.bz2 mutti-web-ea3b98ef0e8c17e5de6f1418879d6f8c50eab012.zip |
Makefile: Add verbosity support (like in automake)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -6,16 +6,28 @@ pages=$(shell sed -n 's/^.*filename="\([^"]*\)".*/\1/p' main.xml) pages_html=$(pages:%.xml=%.xhtml) +DEFAULT_VERBOSITY=0 + +# verbosity stuff +V_XSLT = $(v_xslt_$(V)) +v_xslt_ = $(v_xslt_$(DEFAULT_VERBOSITY)) +v_xslt_0 = @echo " XSLT " $@; + +V_GEN = $(v_gen_$(V)) +v_gen_ = $(v_gen_$(DEFAULT_VERBOSITY)) +v_gen_0 = @echo " GEN " $@; + + .PHONY: all all: $(pages_html) checkmark.png %.png: %.svg - $(svg2png) $< > $@ + $(V_GEN) $(svg2png) $< > $@ %.xhtml: %.xml %.xsl xsl/* - $(xsltproc) $< > $@ + $(V_XSLT) $(xsltproc) $< > $@ %.xhtml: %.xml xsl/* - $(xsltproc) $< > $@ + $(V_XSLT) $(xsltproc) $< > $@ clean: rm -f $(pages_html) checkmark.png |