testsuite: Generate generate_nlmsg when needed

Commit 886f2c43 added generate_nlmsg.c. Running alltests
target, which uses the binary required to run 'make -C tools' before.

Fixes: 886f2c43 testsuite: Generate nlmsg blob at runtime

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Petr Vorel 2018-09-20 01:36:23 +02:00 committed by Stephen Hemminger
parent f15836faec
commit 3537633dcf

View File

@ -28,7 +28,7 @@ endif
configure:
echo "Entering iproute2" && cd iproute2 && $(MAKE) configure && cd ..;
compile: configure
compile: configure generate_nlmsg
echo "Entering iproute2" && cd iproute2 && $(MAKE) && cd ..;
listtests:
@ -36,7 +36,10 @@ listtests:
echo "$$t"; \
done
alltests: $(TESTS)
generate_nlmsg:
$(MAKE) -C tools
alltests: generate_nlmsg $(TESTS)
testclean:
@echo "Removing $(RESULTS_DIR) dir ..."