summaryrefslogblamecommitdiff
path: root/services/Makefile
blob: 0e0835f94135169b79442976960564d81e0e20a7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
                                                                                  
                                       













                                                                                  













                            

                             
                                           
VALIDATOR := perl ../utils/validator.pl --schema spore_validation.rx --description
SPORE2DOT := perl ../utils/spore2dot.pl

check: spore_validation.rx
	@make -C github check
	@$(VALIDATOR) backtweet.json
	@$(VALIDATOR) backtype.json
	@$(VALIDATOR) github.json
	@$(VALIDATOR) ihackernews.json
	@$(VALIDATOR) twitter.json

test: check

spore_validation.rx:
	wget http://github.com/SPORE/specifications/raw/master/spore_validation.rx

png: \
    backtweet.png \
    backtype.png \
    github.png \
    ihackernews.png \
    twitter.png
	@make -C github png

%.png : %.dot
	dot -T png -o $@ $<

%.dot: %.json
	$(SPORE2DOT) $< > $@

clean:
	@make -C github clean
	-rm *.png *.dot spore_validation.rx