]> sjero.net Git - wget/commitdiff
[svn] make test should result in build of src/wget when necessary.
authormicah <devnull@localhost>
Thu, 12 Jul 2007 08:22:08 +0000 (01:22 -0700)
committermicah <devnull@localhost>
Thu, 12 Jul 2007 08:22:08 +0000 (01:22 -0700)
Makefile.in
tests/Makefile.in

index b76228c0bbc1b44b51abc8922e1cd6d709d3c015..f3467a2bf067a2ce621ab7e8957b1e78b6289e40 100644 (file)
@@ -86,7 +86,7 @@ SUBDIRS = src doc po tests util windows
 # default target
 all: src/config.h Makefile $(SUBDIRS)
 
-test: src/config.h Makefile 
+test: src/config.h Makefile src
        cd tests && $(MAKE) $(MAKEDEFS) $@
        
 check: all
index b038664070bb40ee69ff1a1f6a5778925ac98b17..3f7d3b626e33643a5491fabc571ef4b552513efa 100644 (file)
@@ -76,7 +76,10 @@ all:
 
 .PHONY: test
 
-test: run-unit-tests run-px-tests
+test: @top_srcdir@/src/wget run-unit-tests run-px-tests
+
+@top_srcdir@/src/wget:
+       cd @top_srcdir@ && $(MAKE)
 
 run-unit-tests: unit-tests$(exeext)
        ./unit-tests$(exeext)