aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEnrico Tassi2019-04-20 18:41:05 +0200
committerEnrico Tassi2019-04-20 18:41:05 +0200
commitfebcc72ee21d5c874c53a7befd658a93adf103a8 (patch)
tree30bfc38b43c16b03d944a6da6be1705f7a5ad421 /tools
parent11dd3aeedd5662ea67c89bacb02cce5b562a9532 (diff)
parentf8690d31f74f18ac1dd03d0b0922d2908b9c6807 (diff)
Merge PR #9906: coq_makefile install target: error if any file is missing
Reviewed-by: gares
Diffstat (limited to 'tools')
-rw-r--r--tools/CoqMakefile.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/CoqMakefile.in b/tools/CoqMakefile.in
index bd9d8c9221..0236c549d5 100644
--- a/tools/CoqMakefile.in
+++ b/tools/CoqMakefile.in
@@ -468,6 +468,9 @@ beautify: $(BEAUTYFILES)
# Extensions can't assume when they run.
install:
+ $(HIDE)code=0; for f in $(FILESTOINSTALL); do\
+ if ! [ -f "$$f" ]; then >&2 echo $$f does not exist; code=1; fi \
+ done; exit $$code
$(HIDE)for f in $(FILESTOINSTALL); do\
df="`$(COQMKFILE) -destination-of "$$f" $(COQLIBS)`";\
if [ "$$?" != "0" -o -z "$$df" ]; then\