diff options
author | Jakob Odersky <jodersky@gmail.com> | 2011-03-13 14:25:15 +0000 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2011-03-13 14:25:15 +0000 |
commit | 30cc264b7381cd1895ea8a3b709567e6eaf1113d (patch) | |
tree | 3683e4fe3647dbb5332b0d2988c0f3b07085194f /Makefile | |
parent | f2163b32810d75bb4ea3e3f7c91ccdf2c6ada61a (diff) | |
download | vhc-30cc264b7381cd1895ea8a3b709567e6eaf1113d.tar.gz vhc-30cc264b7381cd1895ea8a3b709567e6eaf1113d.tar.bz2 vhc-30cc264b7381cd1895ea8a3b709567e6eaf1113d.zip |
Creation d'un systeme de test automatise.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -2,9 +2,9 @@ # Makefile principale # #=======================================================================# # Les variables suivantes sont definis pour des makefiles plus bas. # -# BASEDIR repertoire de base du projet # -# SRCDIR repertoire contenant le code source # -# BINDIR repertoire ou sont places toutes objets compiles # +# BASEDIR repertoire de base du projet # +# SRCDIR repertoire contenant le code source # +# BINDIR repertoire ou sont places toutes objets compiles # ######################################################################### @@ -31,7 +31,7 @@ export BINDIR = $(BASEDIR)/bin .PHONY: all checkdirs build clean doc -all: checkdirs build test-build doc +all: checkdirs build test-build doc test # Compile les fichiers source principales build: checkdirs @@ -40,7 +40,7 @@ build: checkdirs @echo "Done building main sources." # Compile les tests -test-build: checkdirs build +test-build: build @echo "Building test sources..." make all -C $(SRCDIR)/test @echo "Done building test sources." @@ -59,4 +59,10 @@ $(BINDIR): @mkdir -p $@ clean: - @rm -rf $(BINDIR)
\ No newline at end of file + @rm -rf $(BINDIR) + +# Lance les tests +test: test-build + ./testr.sh $(BINDIR)/test + +
\ No newline at end of file |