contrib: add some check rules
authorJean Privat <jean@pryen.org>
Tue, 14 Apr 2015 11:57:37 +0000 (18:57 +0700)
committerJean Privat <jean@pryen.org>
Tue, 14 Apr 2015 12:43:02 +0000 (19:43 +0700)
`check` is the expected name for Makefile, `tests` is a nitism

Signed-off-by: Jean Privat <jean@pryen.org>

contrib/header_keeper/Makefile
contrib/inkscape_tools/Makefile
contrib/nitcc/src/Makefile
contrib/nitiwiki/Makefile
contrib/pep8analysis/Makefile

index 76d36c6..90ac840 100644 (file)
@@ -2,6 +2,7 @@ bin/header_keeper:
        mkdir -p bin
        ../../bin/nitc --dir bin src/header_keeper.nit
 
+check: tests
 tests: bin/header_keeper
        gcc -E /usr/include/SDL/SDL_image.h | bin/header_keeper SDL_image.h
        gcc -E /usr/include/GLES2/gl2.h | bin/header_keeper gl2.h
index d1f81e0..bfadf98 100644 (file)
@@ -4,6 +4,7 @@ bins:
        mkdir -p bin
        ../../bin/nitc --dir bin src/svg_to_png_and_nit.nit src/svg_to_icons.nit
 
+check: tests
 tests: test-dino test-app
 
 test-app: bin/svg_to_png_and_nit
index ae422ff..030cd5d 100644 (file)
@@ -33,6 +33,7 @@ minilang: nitcc ../examples/minilang.sablecc ../examples/minilang.nit
        ${NITC} ../examples/minilang.nit -v
        printf "10\n42\n" | ./minilang ../examples/minilang.minilang
 
+check: tests
 tests:
        cd ../tests && ./run
 
index 8e385f9..2bff3fc 100644 (file)
@@ -4,6 +4,7 @@ nitiwiki:
        mkdir -p bin
        ../../bin/nitc src/nitiwiki.nit -o bin/nitiwiki
 
+check: tests
 tests: nitiwiki
        cd tests; make
 
index cf8c325..f3fa803 100644 (file)
@@ -5,6 +5,7 @@ bin/pep8analysis:
 doc/index.html:
        ../../bin/nitdoc src/pep8analysis.nit
 
+check: tests
 tests: bin/pep8analysis
        bin/pep8analysis --cfg-long tests/privat/*.pep tests/micro/*.pep tests/terrasa/*.pep