add ignore and remove binary file

This commit is contained in:
feng-arch 2024-12-18 17:21:32 +08:00
parent eacf46ec84
commit add35a18a6
6 changed files with 6 additions and 1 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.o
*.a
*.so
*.out

View File

@ -6,7 +6,7 @@ SOURCES=$(wildcard src/**/*.c src/*.c)
OBJECTS=$(patsubst %.c,%.o,$(SOURCES)) OBJECTS=$(patsubst %.c,%.o,$(SOURCES))
TEST_SRC=$(wildcard tests/*_tests.c) TEST_SRC=$(wildcard tests/*_tests.c)
TESTS=$(patsubst %.c,%,$(TEST_SRC)) TESTS=$(patsubst %.c,%.out,$(TEST_SRC))
TARGET=build/libYOUR_LIBRARY.a TARGET=build/libYOUR_LIBRARY.a
SO_TARGET=$(patsubst %.a,%.so,$(TARGET)) SO_TARGET=$(patsubst %.a,%.so,$(TARGET))
@ -46,6 +46,7 @@ clean:
rm -rf build $(OBJECTS) $(TESTS) rm -rf build $(OBJECTS) $(TESTS)
rm -f tests/tests.log rm -f tests/tests.log
find . -name "*.gc*" -exec rm {} \; find . -name "*.gc*" -exec rm {} \;
find . -name "*.out*" -exec rm {} \;
rm -rf `find . -name "*.dSYM" -print` rm -rf `find . -name "*.dSYM" -print`
# The Install # The Install