From: Luca Boccassi Date: Wed, 22 Aug 2018 18:09:01 +0000 (+0100) Subject: testsuite: remove all temp files and implement make clean X-Git-Tag: v4.19.0~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad23e152;p=thirdparty%2Fiproute2.git testsuite: remove all temp files and implement make clean Some generated test files were not removed, including one executable in the testsuite/tools directory. Ensure make clean from the top level directory works for the testsuite subdirs too, and that all the files are removed. Signed-off-by: Luca Boccassi Signed-off-by: Stephen Hemminger --- diff --git a/Makefile b/Makefile index 651d2a506..ea2f797c9 100644 --- a/Makefile +++ b/Makefile @@ -96,7 +96,7 @@ snapshot: > include/SNAPSHOT.h clean: - @for i in $(SUBDIRS); \ + @for i in $(SUBDIRS) testsuite; \ do $(MAKE) $(MFLAGS) -C $$i clean; done clobber: diff --git a/testsuite/Makefile b/testsuite/Makefile index f9f3b1984..fa4849c76 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -41,6 +41,9 @@ alltests: $(TESTS) clean: @echo "Removing $(RESULTS_DIR) dir ..." @rm -rf $(RESULTS_DIR) + @rm -f iproute2/iproute2-this + @rm -f tests/ip/link/dev_wo_vf_rate.nl + $(MAKE) -C tools clean distclean: clean echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..; diff --git a/testsuite/tools/Makefile b/testsuite/tools/Makefile index f2cdc9803..f0ce4ee23 100644 --- a/testsuite/tools/Makefile +++ b/testsuite/tools/Makefile @@ -1,3 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 generate_nlmsg: generate_nlmsg.c ../../lib/libnetlink.c $(CC) -o $@ $^ + +clean: + rm -f generate_nlmsg