Clean generated *.su file and gitignore them

This commit is contained in:
Manuel Pégourié-Gonnard 2019-07-30 14:59:54 +02:00
parent d64a2f72e6
commit 80eaddfc36
4 changed files with 9 additions and 5 deletions

3
.gitignore vendored
View File

@ -22,6 +22,9 @@ Coverage
# generated by scripts/memory.sh # generated by scripts/memory.sh
massif-* massif-*
# scripts/baremetal.sh --ram build artefacts:
*.su
# MSVC build artifacts: # MSVC build artifacts:
*.exe *.exe
*.pdb *.pdb

View File

@ -200,7 +200,7 @@ libmbedcrypto.dll: $(OBJS_CRYPTO)
clean: clean:
ifndef WINDOWS ifndef WINDOWS
rm -f *.o libmbed* rm -f *.o *.su libmbed*
else else
del /Q /F *.o libmbed* del /Q /F *.o *.su libmbed*
endif endif

View File

@ -298,8 +298,9 @@ ifndef WINDOWS
rm -f $(APPS) rm -f $(APPS)
-rm -f ssl/ssl_pthread_server$(EXEXT) -rm -f ssl/ssl_pthread_server$(EXEXT)
-rm -f test/cpp_dummy_build$(EXEXT) -rm -f test/cpp_dummy_build$(EXEXT)
-rm -f *.su
else else
del /S /Q /F *.o *.exe del /S /Q /F *.o *.su *.exe
endif endif
list: list:

View File

@ -114,9 +114,9 @@ $(BINARIES): %$(EXEXT): %.c $(DEP)
clean: clean:
ifndef WINDOWS ifndef WINDOWS
rm -rf $(BINARIES) *.c *.datax TESTS rm -rf $(BINARIES) *.c *.su *.datax TESTS
else else
del /Q /F *.c *.exe *.datax del /Q /F *.c *.su *.exe *.datax
ifneq ($(wildcard TESTS/.*),) ifneq ($(wildcard TESTS/.*),)
rmdir /Q /S TESTS rmdir /Q /S TESTS
endif endif