Modify Makefile clean rule to remove compilation artifacts by their extension (.exe, .out, ...), not their full name

This commit is contained in:
2025-11-17 11:46:23 +01:00
parent 46db334a2e
commit 3fc1e12623
2 changed files with 11 additions and 15 deletions
+9 -14
View File
@@ -49,18 +49,13 @@ libtoastyfs.a: $(OFILES)
ar rcs $@ $^
clean:
rm -f \
toastyfs.exe \
toastyfs.out \
toastyfs_random_test.exe \
toastyfs_random_test.out \
toastyfs_random_test_coverage.exe \
toastyfs_random_test_coverage.out \
example_client.exe \
example_client.out \
libtoastyfs.a \
src/*.o \
src/*.gcda \
src/*.gcno \
*.gcda \
rm -f \
*.exe \
*.out \
*.a \
*.gcov \
src/*.o \
src/*.gcda \
src/*.gcno \
*.gcda \
*.gcno