]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
Makefile: have check target depend on all
authorLuca Boccassi <bluca@debian.org>
Sun, 16 Dec 2018 20:55:37 +0000 (20:55 +0000)
committerStephen Hemminger <sthemmin@microsoft.com>
Tue, 18 Dec 2018 17:58:10 +0000 (09:58 -0800)
Otherwise it will simply fail immediately from a just-cleaned
workspace:

$ make check -j1
cd testsuite && make && make alltests
echo "Entering iproute2" && cd iproute2 && make configure && cd ..;
Entering iproute2
make -C tools
Makefile:3: ../../config.mk: No such file or directory
make[2]: *** No rule to make target '../../config.mk'.  Stop.

Fixes: 8804a8c0d387 ("Makefile: Add check target")
Signed-off-by: Luca Boccassi <bluca@debian.org>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Tested-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Makefile

index b7488addc6f2eb3f2d6cb4a4f4bc0b711dfba56b..20c760e24c9434c9f69d2093efab99657cfe0d4a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -119,7 +119,7 @@ clobber:
 
 distclean: clobber
 
-check:
+check: all
        cd testsuite && $(MAKE) && $(MAKE) alltests
 
 cscope: