diff options
author | Gilles Peskine <Gilles.Peskine@arm.com> | 2021-05-18 15:48:56 +0200 |
---|---|---|
committer | Gilles Peskine <Gilles.Peskine@arm.com> | 2021-05-20 10:37:22 +0200 |
commit | 94230eaf4153dfac761d2dcabe81ab80017e2ab1 (patch) | |
tree | 2cbd2c88b6ddea16c1810350756e24baac2bf85c /Makefile | |
parent | e2f476e0fd1563e151c38da15b5bc71105d4d07e (diff) | |
download | mbedtls-94230eaf4153dfac761d2dcabe81ab80017e2ab1.zip mbedtls-94230eaf4153dfac761d2dcabe81ab80017e2ab1.tar.gz mbedtls-94230eaf4153dfac761d2dcabe81ab80017e2ab1.tar.bz2 |
Fix `make generated_files` generating broken visualc files
Ensure that the .c files that generate_visualc_files.pl enumerates are present
before it runs. Otherwise, depending on the order in which make builds
targets, running `make generated_files` from a fresh checkout could end up
missing `library/error.c` and `library/version_features.c`.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -40,6 +40,12 @@ generated_files: visualc_files VISUALC_FILES = visualc/VS2010/mbedTLS.sln visualc/VS2010/mbedTLS.vcxproj # TODO: $(app).vcxproj for each $(app) in programs/ visualc_files: $(VISUALC_FILES) + +# Ensure that the .c files that generate_visualc_files.pl enumerates are +# present before it runs. List the files explicitly, not via the +# library/generated_files indirection, because otherwise running +# make visualc_files would always consider the visualc files out of date. +$(VISUALC_FILES): library/error.c library/version_features.c $(VISUALC_FILES): scripts/generate_visualc_files.pl $(VISUALC_FILES): scripts/data_files/vs2010-app-template.vcxproj $(VISUALC_FILES): scripts/data_files/vs2010-main-template.vcxproj |