summaryrefslogtreecommitdiff
path: root/services/linkedin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'services/linkedin/Makefile')
-rw-r--r--services/linkedin/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/services/linkedin/Makefile b/services/linkedin/Makefile
new file mode 100644
index 0000000..f48c51e
--- /dev/null
+++ b/services/linkedin/Makefile
@@ -0,0 +1,34 @@
+
+VALIDATOR := perl ../../utils/validator.pl --schema spore_validation.rx --description
+SPORE2DOT := perl ../../utils/spore2dot.pl
+
+check: spore_validation.rx
+ @$(VALIDATOR) oauth.json
+ @$(VALIDATOR) people.json
+ @$(VALIDATOR) groups.json
+ @$(VALIDATOR) companies.json
+ @$(VALIDATOR) jobs.json
+ @$(VALIDATOR) network.json
+ @$(VALIDATOR) communications.json
+
+test: check
+
+spore_validation.rx:
+ wget http://github.com/SPORE/specifications/raw/master/spore_validation.rx
+
+png: linkedin.png
+
+%.png: %.dot
+ dot -T png -o $@ $<
+
+linkedin.dot: \
+ people.json \
+ groups.json \
+ companies.json \
+ jobs.json \
+ network.json \
+ communications.json
+ $(SPORE2DOT) $^ > $@
+
+clean:
+ -rm *.png *.dot spore_validation.rx