Makefile: Make "make test" depend on the main program.
authorCarl Worth <cworth@cworth.org>
Thu, 13 May 2010 17:45:32 +0000 (10:45 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 14 May 2010 16:20:13 +0000 (09:20 -0700)
Otherwise, running "make test" can run an old version of the code,
(even when new changes are sitting in the source waiting to be
compiled).

Makefile

index c5472a86b3c3f5a2505362b72a65b1930766b5af..550945abd304ae0bdfd7ac5d7f91d9ca58120339 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ glcpp: glcpp.o glcpp-lex.o glcpp-parse.o hash_table.o xtalloc.o
 
 glcpp-lex.c: glcpp-parse.h
 
-test:
+test: glcpp
        @(cd tests; ./glcpp-test)
 
 clean: