diff options
author | James Laird <jlaird@hdfgroup.org> | 2006-03-23 14:22:34 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2006-03-23 14:22:34 (GMT) |
commit | 524d25498fb7e39b2ad13e674afb8a0ae3844434 (patch) | |
tree | f6330aec61ddaa49f41afdb9ddc112165064a75d /hl | |
parent | 15f0a2e95c3c6ea72fe88fe8c9bc45cab7eb3212 (diff) | |
download | hdf5-524d25498fb7e39b2ad13e674afb8a0ae3844434.zip hdf5-524d25498fb7e39b2ad13e674afb8a0ae3844434.tar.gz hdf5-524d25498fb7e39b2ad13e674afb8a0ae3844434.tar.bz2 |
[svn-r12143] Purpose:
Bug fix
Description:
make check-clean didn't clean results of example tests
Solution:
Fixed Makefiles so that check-clean recurses into example directories.
Also a little Makefile cleanup.
Platforms tested:
mir, modi4, heping, copper
Diffstat (limited to 'hl')
-rw-r--r-- | hl/Makefile.am | 15 | ||||
-rwxr-xr-x | hl/Makefile.in | 19 | ||||
-rw-r--r-- | hl/c++/Makefile.am | 13 | ||||
-rw-r--r-- | hl/c++/Makefile.in | 17 | ||||
-rw-r--r-- | hl/c++/examples/Makefile.in | 4 | ||||
-rw-r--r-- | hl/c++/src/Makefile.in | 4 | ||||
-rw-r--r-- | hl/c++/test/Makefile.in | 4 | ||||
-rw-r--r-- | hl/examples/Makefile.in | 4 | ||||
-rw-r--r-- | hl/fortran/Makefile.am | 13 | ||||
-rw-r--r-- | hl/fortran/Makefile.in | 17 | ||||
-rw-r--r-- | hl/fortran/examples/Makefile.in | 4 | ||||
-rw-r--r-- | hl/fortran/src/Makefile.in | 4 | ||||
-rw-r--r-- | hl/fortran/test/Makefile.in | 4 | ||||
-rw-r--r-- | hl/src/Makefile.in | 4 | ||||
-rw-r--r-- | hl/test/Makefile.in | 4 | ||||
-rw-r--r-- | hl/tools/Makefile.in | 4 | ||||
-rw-r--r-- | hl/tools/gif2h5/Makefile.in | 4 |
17 files changed, 114 insertions, 24 deletions
diff --git a/hl/Makefile.am b/hl/Makefile.am index 77dd458..d462a3d 100644 --- a/hl/Makefile.am +++ b/hl/Makefile.am @@ -44,11 +44,18 @@ DIST_SUBDIRS=src test tools c++ fortran examples install-examples uninstall-examples: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; -# Check that examples can be successfully built -check-install: - @$(MAKE) $(AM_MAKEFLAGS) installcheck - installcheck-local: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; +# Clean examples when check-clean is invoked +check-clean :: + @$(MAKE) $(AM_MAKEFLAGS) build-$@ || exit 1; + @for d in X $(SUBDIRS) examples; do \ + if test $$d != X && test $$d != .; then \ + (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ + fi; \ + done + +build-check-clean: + include $(top_srcdir)/config/conclude.am diff --git a/hl/Makefile.in b/hl/Makefile.in index 85cf3bb..4390200 100755 --- a/hl/Makefile.in +++ b/hl/Makefile.in @@ -666,13 +666,20 @@ check-install: installcheck install-examples uninstall-examples: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; -# Check that examples can be successfully built -check-install: - @$(MAKE) $(AM_MAKEFLAGS) installcheck - installcheck-local: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; +# Clean examples when check-clean is invoked +check-clean :: + @$(MAKE) $(AM_MAKEFLAGS) build-$@ || exit 1; + @for d in X $(SUBDIRS) examples; do \ + if test $$d != X && test $$d != .; then \ + (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ + fi; \ + done + +build-check-clean: + # lib/progs/tests targets recurse into subdirectories. build-* targets # build files in this directory. build-lib: $(LIB) @@ -699,6 +706,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -718,6 +726,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/c++/Makefile.am b/hl/c++/Makefile.am index e19cab2..563d4ae 100644 --- a/hl/c++/Makefile.am +++ b/hl/c++/Makefile.am @@ -26,11 +26,16 @@ DIST_SUBDIRS=src test examples install-examples uninstall-examples: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; -# Check that examples can be successfully built -check-install: - @$(MAKE) $(AM_MAKEFLAGS) installcheck - installcheck-local: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; +# Clean examples when check-clean is invoked +check-clean :: + @$(MAKE) $(AM_MAKEFLAGS) build-$@ || exit 1; + @for d in X $(SUBDIRS) examples; do \ + if test $$d != X && test $$d != .; then \ + (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ + fi; \ + done + include $(top_srcdir)/config/conclude.am diff --git a/hl/c++/Makefile.in b/hl/c++/Makefile.in index 5f37302..e1d8ceb 100644 --- a/hl/c++/Makefile.in +++ b/hl/c++/Makefile.in @@ -660,13 +660,18 @@ check-install: installcheck install-examples uninstall-examples: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; -# Check that examples can be successfully built -check-install: - @$(MAKE) $(AM_MAKEFLAGS) installcheck - installcheck-local: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; +# Clean examples when check-clean is invoked +check-clean :: + @$(MAKE) $(AM_MAKEFLAGS) build-$@ || exit 1; + @for d in X $(SUBDIRS) examples; do \ + if test $$d != X && test $$d != .; then \ + (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ + fi; \ + done + # lib/progs/tests targets recurse into subdirectories. build-* targets # build files in this directory. build-lib: $(LIB) @@ -693,6 +698,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -712,6 +718,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/c++/examples/Makefile.in b/hl/c++/examples/Makefile.in index b011b3c..25885bd 100644 --- a/hl/c++/examples/Makefile.in +++ b/hl/c++/examples/Makefile.in @@ -591,6 +591,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -610,6 +611,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/c++/src/Makefile.in b/hl/c++/src/Makefile.in index ecb35ad..dae8515 100644 --- a/hl/c++/src/Makefile.in +++ b/hl/c++/src/Makefile.in @@ -701,6 +701,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -720,6 +721,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/c++/test/Makefile.in b/hl/c++/test/Makefile.in index e61a284..c98a2e9 100644 --- a/hl/c++/test/Makefile.in +++ b/hl/c++/test/Makefile.in @@ -651,6 +651,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -670,6 +671,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/examples/Makefile.in b/hl/examples/Makefile.in index 8bbe027..d044b4f 100644 --- a/hl/examples/Makefile.in +++ b/hl/examples/Makefile.in @@ -621,6 +621,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -640,6 +641,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/fortran/Makefile.am b/hl/fortran/Makefile.am index 9a75aa0..920e6be 100644 --- a/hl/fortran/Makefile.am +++ b/hl/fortran/Makefile.am @@ -31,11 +31,16 @@ DIST_SUBDIRS=src test examples install-examples uninstall-examples: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; -# Check that examples can be successfully built -check-install: - @$(MAKE) $(AM_MAKEFLAGS) installcheck - installcheck-local: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; +# Clean examples when check-clean is invoked +check-clean :: + @$(MAKE) $(AM_MAKEFLAGS) build-$@ || exit 1; + @for d in X $(SUBDIRS) examples; do \ + if test $$d != X && test $$d != .; then \ + (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ + fi; \ + done + include $(top_srcdir)/config/conclude.am diff --git a/hl/fortran/Makefile.in b/hl/fortran/Makefile.in index 02dbaec..7812030 100644 --- a/hl/fortran/Makefile.in +++ b/hl/fortran/Makefile.in @@ -664,13 +664,18 @@ check-install: installcheck install-examples uninstall-examples: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; -# Check that examples can be successfully built -check-install: - @$(MAKE) $(AM_MAKEFLAGS) installcheck - installcheck-local: @(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; +# Clean examples when check-clean is invoked +check-clean :: + @$(MAKE) $(AM_MAKEFLAGS) build-$@ || exit 1; + @for d in X $(SUBDIRS) examples; do \ + if test $$d != X && test $$d != .; then \ + (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ + fi; \ + done + # lib/progs/tests targets recurse into subdirectories. build-* targets # build files in this directory. build-lib: $(LIB) @@ -697,6 +702,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -716,6 +722,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/fortran/examples/Makefile.in b/hl/fortran/examples/Makefile.in index 73169ec..f535083 100644 --- a/hl/fortran/examples/Makefile.in +++ b/hl/fortran/examples/Makefile.in @@ -592,6 +592,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -611,6 +612,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/fortran/src/Makefile.in b/hl/fortran/src/Makefile.in index 5f23b40..fa0f8ff 100644 --- a/hl/fortran/src/Makefile.in +++ b/hl/fortran/src/Makefile.in @@ -735,6 +735,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -754,6 +755,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/fortran/test/Makefile.in b/hl/fortran/test/Makefile.in index 2153462..e757955 100644 --- a/hl/fortran/test/Makefile.in +++ b/hl/fortran/test/Makefile.in @@ -654,6 +654,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -673,6 +674,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/src/Makefile.in b/hl/src/Makefile.in index 4902a49..fe1df2e 100644 --- a/hl/src/Makefile.in +++ b/hl/src/Makefile.in @@ -704,6 +704,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -723,6 +724,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/test/Makefile.in b/hl/test/Makefile.in index 7836aae..ab6f5a0 100644 --- a/hl/test/Makefile.in +++ b/hl/test/Makefile.in @@ -686,6 +686,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -705,6 +706,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/tools/Makefile.in b/hl/tools/Makefile.in index a1a43bf..446bf7d 100644 --- a/hl/tools/Makefile.in +++ b/hl/tools/Makefile.in @@ -684,6 +684,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -703,6 +704,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. diff --git a/hl/tools/gif2h5/Makefile.in b/hl/tools/gif2h5/Makefile.in index 9fd8142..1c6556d 100644 --- a/hl/tools/gif2h5/Makefile.in +++ b/hl/tools/gif2h5/Makefile.in @@ -689,6 +689,7 @@ check-clean :: (set -x; cd $$d && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1; \ fi; \ done + # Tell Automake to build tests when the user types `make all' (this is # not its default behavior). Also build EXTRA_LIB and EXTRA_PROG since # Automake won't build them automatically, either. @@ -708,6 +709,9 @@ build-check-clean: # run check-clean whenever mostlyclean is run mostlyclean-local: build-check-clean +# check-install is just a synonym for installcheck + @$(MAKE) $(AM_MAKEFLAGS) installcheck + # Run each test in order, passing $(TEST_FLAGS) to the program. # Since tests are done in a shell loop, "make -i" does apply inside it. # Set HDF5_Make_Ignore to a non-blank string to ignore errors inside the loop. |