diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2010-10-25 18:56:56 +0200 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2010-10-25 18:56:56 +0200 |
commit | f31fa515b1e1f296685b761c088e98a1fd68cee8 (patch) | |
tree | 5934037fdd6d5de51c7ae426454d59805ecce43a | |
parent | add a new tool (diff) | |
download | api-description-f31fa515b1e1f296685b761c088e98a1fd68cee8.tar.gz |
add a target png for picture generation
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | apps/Makefile | 13 | ||||
-rw-r--r-- | services/Makefile | 17 | ||||
-rw-r--r-- | services/github/Makefile | 11 |
5 files changed, 43 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore index d6d83f9..b30e813 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.yaml *.rx +*.dot diff --git a/Makefile b/Makefile index 1c7215c..3dc4c3c 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,10 @@ check: test: check +png: + @make -C apps png + @make -C services png + clean: @make -C apps clean @make -C services clean diff --git a/apps/Makefile b/apps/Makefile index 9f46b1e..a9a6a72 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -1,5 +1,6 @@ VALIDATOR := perl ../utils/validator.pl --schema spore_validation.rx --description +SPORE2DOT := perl ../utils/spore2dot.pl check: spore_validation.rx @$(VALIDATOR) couchdb.json @@ -10,5 +11,15 @@ test: check spore_validation.rx: wget http://github.com/SPORE/specifications/raw/master/spore_validation.rx +png: \ + couchdb.png \ + presque.png + +%.png : %.dot + dot -T png -o $@ $< + +%.dot: %.json + $(SPORE2DOT) $< > $@ + clean: - -rm spore_validation.rx + -rm *.png *.dot spore_validation.rx diff --git a/services/Makefile b/services/Makefile index 7126764..0e0835f 100644 --- a/services/Makefile +++ b/services/Makefile @@ -1,4 +1,5 @@ VALIDATOR := perl ../utils/validator.pl --schema spore_validation.rx --description +SPORE2DOT := perl ../utils/spore2dot.pl check: spore_validation.rx @make -C github check @@ -13,6 +14,20 @@ 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 spore_validation.rx + -rm *.png *.dot spore_validation.rx diff --git a/services/github/Makefile b/services/github/Makefile index d9efd92..0b4264d 100644 --- a/services/github/Makefile +++ b/services/github/Makefile @@ -1,5 +1,6 @@ VALIDATOR := perl ../../utils/validator.pl --schema spore_validation.rx --description +SPORE2DOT := perl ../../utils/spore2dot.pl check: spore_validation.rx @$(VALIDATOR) repository.json @@ -10,5 +11,13 @@ 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 repository.json + $(SPORE2DOT) $^ > $@ + clean: - -rm spore_validation.rx + -rm *.png *.dot spore_validation.rx |