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 <bluca@debian.org> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
1019364964
commit
ad23e152b8
2
Makefile
2
Makefile
|
|
@ -96,7 +96,7 @@ snapshot:
|
||||||
> include/SNAPSHOT.h
|
> include/SNAPSHOT.h
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@for i in $(SUBDIRS); \
|
@for i in $(SUBDIRS) testsuite; \
|
||||||
do $(MAKE) $(MFLAGS) -C $$i clean; done
|
do $(MAKE) $(MFLAGS) -C $$i clean; done
|
||||||
|
|
||||||
clobber:
|
clobber:
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@ alltests: $(TESTS)
|
||||||
clean:
|
clean:
|
||||||
@echo "Removing $(RESULTS_DIR) dir ..."
|
@echo "Removing $(RESULTS_DIR) dir ..."
|
||||||
@rm -rf $(RESULTS_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
|
distclean: clean
|
||||||
echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..;
|
echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
generate_nlmsg: generate_nlmsg.c ../../lib/libnetlink.c
|
generate_nlmsg: generate_nlmsg.c ../../lib/libnetlink.c
|
||||||
$(CC) -o $@ $^
|
$(CC) -o $@ $^
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f generate_nlmsg
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue