summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5diff/Makefile.am')
-rw-r--r--tools/h5diff/Makefile.am16
1 files changed, 15 insertions, 1 deletions
diff --git a/tools/h5diff/Makefile.am b/tools/h5diff/Makefile.am
index ea4fa49..4480277 100644
--- a/tools/h5diff/Makefile.am
+++ b/tools/h5diff/Makefile.am
@@ -22,12 +22,23 @@ include $(top_srcdir)/config/commence.am
# Include src and tools/lib directories
AM_CFLAGS=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib
+# Always build and test h5diff but build and test ph5diff only if parallel
+# is enabled.
+if BUILD_PARALLEL_CONDITIONAL
+ H5PDIFF=ph5diff
+ H5DIFF_SCRIPT=$(srcdir)/testh5diff.sh $(srcdir)/testph5diff.sh
+else
+ H5PDIFF=
+ H5DIFF_SCRIPT=$(srcdir)/testh5diff.sh
+endif
+
# Our main target, h5diff
bin_PROGRAMS=h5diff
+bin_SCRIPTS=$(H5PDIFF)
# Test programs and scripts
TEST_PROG=h5difftst
-TEST_SCRIPT=$(srcdir)/testh5diff.sh
+TEST_SCRIPT=$(H5DIFF_SCRIPT)
check_PROGRAMS=$(TEST_PROG)
check_SCRIPTS=$(TEST_SCRIPT)
@@ -44,5 +55,8 @@ LDADD=$(LIBH5TOOLS) $(LIBHDF5)
# be copied to the testfiles/ directory if update is required
MOSTLYCLEANFILES=*.h5
+ph5diff: h5diff
+ @$(CP) $? $@
+
include $(top_srcdir)/config/conclude.am