git » libfiu » commit 540515f

Makefile: Extend "clean" targets to cover more build artifacts

author Alberto Bertogli
2018-09-29 18:33:22 UTC
committer Alberto Bertogli
2018-09-30 21:50:42 UTC
parent ddf8acdc975c4363eb821ed043541e688b11640a

Makefile: Extend "clean" targets to cover more build artifacts

We were leaving some build artifacts behind when we do a "make clean",
this patch fixes this by adding the necessary rules.

Makefile +1 -1
preload/run/Makefile +1 -0
tests/Makefile +2 -0
tests/utils/Makefile +0 -1

diff --git a/Makefile b/Makefile
index 6749813..cd4e81c 100644
--- a/Makefile
+++ b/Makefile
@@ -80,7 +80,7 @@ python3_install: python3
 	cd bindings/python && python3 setup.py install
 
 python_clean:
-	cd bindings/python && rm -rf build/
+	cd bindings/python && rm -rf build/ fiu_ctrl.py
 
 
 clean: python_clean preload_clean libfiu_clean utils_clean test_clean
diff --git a/preload/run/Makefile b/preload/run/Makefile
index c0d864c..448413d 100644
--- a/preload/run/Makefile
+++ b/preload/run/Makefile
@@ -84,6 +84,7 @@ uninstall:
 clean:
 	rm -f $(OBJS) fiu_run_preload.so fiu-run build-flags
 	rm -f *.bb *.bbg *.da *.gcov *.gcda *.gcno gmon.out
+	rm -f build-needlibdl
 
 .PHONY: default install uninstall clean .force-build-flags
 
diff --git a/tests/Makefile b/tests/Makefile
index c4a63ed..5d1ae36 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -120,6 +120,8 @@ clean:
 	rm -rf libs/ small-cat
 	rm -f *.bb *.bbg *.da *.gcov *.gcda *.gcno gmon.out build-flags
 	$(MAKE) -C generated clean
+	$(MAKE) -C collisions clean
+	$(MAKE) -C utils clean
 
 FORCE:
 
diff --git a/tests/utils/Makefile b/tests/utils/Makefile
index 0c79bad..905b7c3 100644
--- a/tests/utils/Makefile
+++ b/tests/utils/Makefile
@@ -44,7 +44,6 @@ run-%: % lnlibs
 
 clean:
 	rm -f libs/*.so output-*.txt
-	rmdir libs/
 
 .PHONY: default all clean \
 	tests lnlibs