forked from SPORE/api-description
/
Makefile
56 lines (49 loc) · 1.27 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
VALIDATOR := perl ../utils/validator.pl --schema spore_validation.rx --description
SPORE2DOT := perl ../utils/spore2dot.pl
check: spore_validation.rx
@make -C github check
@make -C googlemaps check
@make -C linkedin check
@$(VALIDATOR) amazons3.json
@$(VALIDATOR) backtweet.json
@$(VALIDATOR) backtype.json
@$(VALIDATOR) github.json
@$(VALIDATOR) googleoauth.json
@$(VALIDATOR) googleoauth2.json
@$(VALIDATOR) googlepagespeed.json
@$(VALIDATOR) googleshortener.json
@$(VALIDATOR) googletranslate.json
@$(VALIDATOR) ihackernews.json
@$(VALIDATOR) ohloh.json
@$(VALIDATOR) twitter.json
@$(VALIDATOR) intervals.json
test: check
spore_validation.rx:
wget https://raw.github.com/SPORE/specifications/master/spore_validation.rx
png: \
amazons3.png \
backtweet.png \
backtype.png \
github.png \
googleoauth.png \
googleoauth2.png \
googlepagespeed.png \
googleshortener.png \
googletranslate.png \
ihackernews.png \
ohloh.png \
intervals.png \
indextank.png \
twitter.png
@make -C github png
@make -C googlemaps png
@make -C linkedin png
%.png : %.dot
dot -T png -o $@ $<
%.dot: %.json
$(SPORE2DOT) $< > $@
clean:
@make -C github clean
@make -C googlemaps clean
@make -C linkedin clean
-rm *.png *.dot spore_validation.rx