mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-18 11:37:34 -04:00
Error out if enumerating the generated data files fails
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
8b427c851e
commit
e9ad95a63c
@ -63,7 +63,13 @@ PYTHON ?= $(shell if type python3 >/dev/null 2>/dev/null; then echo python3; els
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: generated_files
|
.PHONY: generated_files
|
||||||
GENERATED_DATA_FILES := $(patsubst tests/%,%,$(shell $(PYTHON) scripts/generate_psa_tests.py --list))
|
GENERATED_DATA_FILES := $(patsubst tests/%,%,$(shell \
|
||||||
|
$(PYTHON) scripts/generate_psa_tests.py --list || \
|
||||||
|
echo FAILED \
|
||||||
|
))
|
||||||
|
ifeq ($(GENERATED_DATA_FILES),FAILED)
|
||||||
|
$(error "$(PYTHON) scripts/generate_psa_tests.py --list" failed)
|
||||||
|
endif
|
||||||
GENERATED_FILES := $(GENERATED_DATA_FILES)
|
GENERATED_FILES := $(GENERATED_DATA_FILES)
|
||||||
generated_files: $(GENERATED_FILES)
|
generated_files: $(GENERATED_FILES)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user