tests: generate files in out/ instead of tests/
[nit.git] / tests / Makefile
index 3d91575..d856b73 100644 (file)
@@ -1,14 +1,16 @@
 
+PROGS=*.nit ../examples/*.nit ../lib/*.nit ../src/nitdoc.nit ../src/nits.nit ../src/nitc.nit ../src/test_parser.nit
+
 all: separate global icode
 
 separate:
-       ./tests.sh *.nit ../examples/*.nit ../lib/*.nit ../src/nitdoc.nit ../src/nitc.nit
+       ./tests.sh ${PROGS}
 
 some:
        ./tests.sh base_compile.nit base_attr.nit base_gen.nit test_gen_inh.nit bench_fib.nit example_objet.nit
 
 global:
-       ./tests.sh -o --global *.nit ../examples/*.nit ../lib/*.nit ../src/nitdoc.nit ../src/nitc.nit
+       ./tests.sh -o --global ${PROGS}
 
 icode:
        ./tests_icode.sh icode*.nit
@@ -21,4 +23,6 @@ store:
        ./store_save.sh *.nit
 
 clean:
-       @rm -r -f -- *.bin *.res *.write *.err *.log alt || true
+       rm -r -f -- out/ alt .nit_compile errlist 2> /dev/null || true
+
+distclean: clean