Unify some common rules of programs/Makefile and tests/Makefile

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2023-12-22 11:49:35 +01:00
parent 076fd25480
commit 4392fc101f
3 changed files with 12 additions and 22 deletions

View file

@ -62,3 +62,15 @@ gen_file_dep =
else
gen_file_dep = |
endif
default: all
$(MBEDLIBS):
$(MAKE) -C ../library
neat: clean
ifndef WINDOWS
rm -f $(GENERATED_FILES)
else
for %f in ($(subst /,\,$(GENERATED_FILES))) if exist %f del /Q /F %f
endif