about summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index c03d635c..ff27e125 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -337,7 +337,10 @@ unit_preallocable: test/unittests/unit_preallocable.o
 	$(CC) $(CFLAGS) $(ASAN_CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf test/unittests/unit_preallocable.o -o test/unittests/unit_preallocable $(LDFLAGS) $(ASAN_LDFLAGS) -lcmocka
 	./test/unittests/unit_preallocable
 
-unit: unit_maybe_alloc unit_preallocable unit_list
+unit_clean:
+	@rm -f ./test/unittests/unit_preallocable ./test/unittests/unit_list ./test/unittests/unit_maybe_alloc test/unittests/*.o
+
+unit: unit_maybe_alloc unit_preallocable unit_list unit_clean
 
 code-format:
 	./.custom-format.py -i src/*.c