summaryrefslogtreecommitdiff
path: root/apps/Makefile
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2010-10-25 18:56:56 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2010-10-25 18:56:56 +0200
commitf31fa515b1e1f296685b761c088e98a1fd68cee8 (patch)
tree5934037fdd6d5de51c7ae426454d59805ecce43a /apps/Makefile
parentadd a new tool (diff)
downloadapi-description-f31fa515b1e1f296685b761c088e98a1fd68cee8.tar.gz
add a target png for picture generation
Diffstat (limited to '')
-rw-r--r--apps/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 9f46b1e..a9a6a72 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -1,5 +1,6 @@
VALIDATOR := perl ../utils/validator.pl --schema spore_validation.rx --description
+SPORE2DOT := perl ../utils/spore2dot.pl
check: spore_validation.rx
@$(VALIDATOR) couchdb.json
@@ -10,5 +11,15 @@ test: check
spore_validation.rx:
wget http://github.com/SPORE/specifications/raw/master/spore_validation.rx
+png: \
+ couchdb.png \
+ presque.png
+
+%.png : %.dot
+ dot -T png -o $@ $<
+
+%.dot: %.json
+ $(SPORE2DOT) $< > $@
+
clean:
- -rm spore_validation.rx
+ -rm *.png *.dot spore_validation.rx