summaryrefslogtreecommitdiff
path: root/apps/couchdb/Makefile
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2010-10-28 20:00:16 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2010-10-28 20:00:16 +0200
commit5ee435e295ab8d09571e9c670e3cdaf7fc28c789 (patch)
treeec8d8c6e166571d83a17bd3b5c68287543dd383d /apps/couchdb/Makefile
parentspore2dot: add a detailed generation (diff)
downloadapi-description-5ee435e295ab8d09571e9c670e3cdaf7fc28c789.tar.gz
CouchDB: an alternate description
(still incomplete)
Diffstat (limited to 'apps/couchdb/Makefile')
-rw-r--r--apps/couchdb/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/apps/couchdb/Makefile b/apps/couchdb/Makefile
new file mode 100644
index 0000000..a8177ca
--- /dev/null
+++ b/apps/couchdb/Makefile
@@ -0,0 +1,29 @@
+
+VALIDATOR := perl ../../utils/validator.pl --schema spore_validation.rx --description
+SPORE2DOT := perl ../../utils/spore2dot.pl
+
+check: spore_validation.rx
+ @$(VALIDATOR) server.json
+ @$(VALIDATOR) database.json
+ @$(VALIDATOR) document.json
+ @$(VALIDATOR) design.json
+
+test: check
+
+spore_validation.rx:
+ wget http://github.com/SPORE/specifications/raw/master/spore_validation.rx
+
+png: couchdb.png
+
+%.png : %.dot
+ dot -T png -o $@ $<
+
+couchdb.dot: \
+ server.json \
+ database.json \
+ document.json \
+ design.json
+ $(SPORE2DOT) $^ > $@
+
+clean:
+ -rm *.png *.dot spore_validation.rx