summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.in13
-rw-r--r--c++/Makefile.in5
-rw-r--r--fortran/Makefile.in5
3 files changed, 18 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index cd0cec5..6f2ad48 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -119,12 +119,15 @@ uninstall-doc:
@$(MAKE) uninstall-examples
(cd doc && $(MAKE) $@) || exit 1;
-## need to require a proper "make install" has been done.
+## Check if installation is correct by checking if examples can be built.
+## This requires a proper "make install" has been done.
check-install:
- (cd examples && $(MAKE) check) || exit 1;
- if test -d fortran/examples; then \
- (cd fortran/examples && $(MAKE) check) || exit 1; \
- fi
+ (cd examples && $(MAKE) check) || exit 1
+ @@SETX@; for d in dummy @subdirs@; do \
+ if test $$d != "dummy"; then \
+ (cd $$d && $(MAKE) $@) || exit 1; \
+ fi; \
+ done
## Number format detection
H5detect:
diff --git a/c++/Makefile.in b/c++/Makefile.in
index 42e400e..ca0f576 100644
--- a/c++/Makefile.in
+++ b/c++/Makefile.in
@@ -104,6 +104,11 @@ install-examples:
uninstall-examples:
(cd examples && $(MAKE) $@) || exit 1;
+## Check if installation is correct by checking if examples can be built.
+## This requires a proper "make install" has been done.
+check-install:
+ (cd examples && $(MAKE) check) || exit 1
+
.PHONY: all lib progs test _test install uninstall dep depend clean \
mostlyclean distclean maintainer-clean
diff --git a/fortran/Makefile.in b/fortran/Makefile.in
index 3fccad8..63a4177 100644
--- a/fortran/Makefile.in
+++ b/fortran/Makefile.in
@@ -99,6 +99,11 @@ install-examples:
uninstall-examples:
(cd examples && $(MAKE) $@) || exit 1;
+## Check if installation is correct by checking if examples can be built.
+## This requires a proper "make install" has been done.
+check-install:
+ (cd examples && $(MAKE) check) || exit 1
+
.PHONY: all lib progs test _test install uninstall dep depend clean \
mostlyclean distclean maintainer-clean