summaryrefslogtreecommitdiff
path: root/services/github/Makefile
blob: 9b344b7b1b20bc6060097fe1ca6f1c9b191dd17e (plain) (blame)
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
VALIDATOR := perl ../../utils/validator.pl --schema spore_validation.rx --description
SPORE2DOT := perl ../../utils/spore2dot.pl

check: spore_validation.rx
	@$(VALIDATOR) user.json
	@$(VALIDATOR) issue.json
	@$(VALIDATOR) gist.json
	@$(VALIDATOR) network.json
	@$(VALIDATOR) repository.json
	@$(VALIDATOR) commit.json
	@$(VALIDATOR) object.json

test: check

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

png: github.png

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

github.dot: \
    user.json \
    issue.json \
    gist.json \
    network.json \
    repository.json \
    commit.json \
    object.json
	$(SPORE2DOT) $^ > $@

clean:
	-rm *.png *.dot spore_validation.rx