summaryrefslogtreecommitdiff
path: root/apps/couchdb/Makefile
diff options
context:
space:
mode:
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