summaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 08c7186..03f4cf8 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -71,10 +71,14 @@ PRIVATE_HDR=H5private.h H5Aprivate.h H5Apkg.h H5ACprivate.h H5Bprivate.h \
## Number format detection
## The LD_LIBRARY_PATH setting is a klutch.
## Things should have been all set during H5detect making.
+## Remove the generated .c file if errors occur unless HDF5_Make_Ignore
+## is set to ignore the error.
H5Tinit.c: H5detect
- LD_LIBRARY_PATH="$$LD_LIBRARY_PATH`echo $(LDFLAGS) | \
- sed -e 's/-L/:/g' -e 's/ //g'`" \
- $(RUNSERIAL) ./H5detect >H5Tinit.c
+ LD_LIBRARY_PATH="$$LD_LIBRARY_PATH`echo $(LDFLAGS) | \
+ sed -e 's/-L/:/g' -e 's/ //g'`" \
+ $(RUNSERIAL) ./H5detect > H5Tinit.c || \
+ (test $$HDF5_Make_Ignore && echo "*** Error ignored") || \
+ ($(RM) $@ ; exit 1)
## no $(LIB) in the action below since that's being made now.
H5detect: H5detect.lo