summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2005-11-17 18:49:28 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2005-11-17 18:49:28 (GMT)
commit75ea10e5f50c3c23fd73f073adb84b0baf551edc (patch)
tree86ac2ae00334b79b7aa3d010415cc01e4e2caae4 /fortran
parent706885260d43891095c910cd5975390504934c09 (diff)
downloadhdf5-75ea10e5f50c3c23fd73f073adb84b0baf551edc.zip
hdf5-75ea10e5f50c3c23fd73f073adb84b0baf551edc.tar.gz
hdf5-75ea10e5f50c3c23fd73f073adb84b0baf551edc.tar.bz2
[svn-r11737] Purpose:
Bug fix Description: Before this checkin, 'gmake check-s' would fail if there was a file in the current directory named 'check-s'. This is fixed under gmake (not sure how to fix for other makes). Solution: check, progs, install, etc. are what gmake calls "phony" targets, which means that no file should be created. These targets can be specified by a line of the form .PHONY: check progs install ... Automake adds this line for targets it knows about, but HDF5 has a lot of custom rules. This checkin adds a .PHONY line for those rules. I believe that only gmake recognizes the .PHONY line (at least, pmake doesn't seem to), but a partial solution is better than none. This error should occur very rarely anyway (the user has to manually create files with names like 'build-check-s' or '_test'). Platforms tested: mir, sleipnir, modi4
Diffstat (limited to 'fortran')
-rw-r--r--fortran/Makefile.in8
-rw-r--r--fortran/examples/Makefile.in8
-rw-r--r--fortran/src/Makefile.in8
-rw-r--r--fortran/test/Makefile.in8
-rw-r--r--fortran/testpar/Makefile.in8
5 files changed, 40 insertions, 0 deletions
diff --git a/fortran/Makefile.in b/fortran/Makefile.in
index a75bae7..d738cca 100644
--- a/fortran/Makefile.in
+++ b/fortran/Makefile.in
@@ -653,6 +653,14 @@ uninstall-info: uninstall-info-recursive
# as well.
check-install: installcheck
+# List all build rules defined by HDF5 Makefiles as "PHONY" targets here.
+# This tells the Makefiles that these targets are not files to be built but
+# commands that should be executed even if a file with the same name already
+# exists.
+.PHONY: build-check-clean build-check-p build-check-s build-lib build-progs \
+ build-tests check-clean check-install check-p check-s check-vfd \
+ install-doc lib progs tests uninstall-doc _exec_check-s _test
+
# Install examples
install-examples uninstall-examples:
@(cd examples && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1;
diff --git a/fortran/examples/Makefile.in b/fortran/examples/Makefile.in
index 6f4370a..e89bc30 100644
--- a/fortran/examples/Makefile.in
+++ b/fortran/examples/Makefile.in
@@ -523,6 +523,14 @@ uninstall-am: uninstall-info-am uninstall-local
# as well.
check-install: installcheck
+# List all build rules defined by HDF5 Makefiles as "PHONY" targets here.
+# This tells the Makefiles that these targets are not files to be built but
+# commands that should be executed even if a file with the same name already
+# exists.
+.PHONY: build-check-clean build-check-p build-check-s build-lib build-progs \
+ build-tests check-clean check-install check-p check-s check-vfd \
+ install-doc lib progs tests uninstall-doc _exec_check-s _test
+
# Some examples depend on files created by other examples.
grpdsetexample.chkexe_: grpsexample.chkexe_
refregexample.chkexe_: refobjexample.chkexe_
diff --git a/fortran/src/Makefile.in b/fortran/src/Makefile.in
index 95c723a..5498add 100644
--- a/fortran/src/Makefile.in
+++ b/fortran/src/Makefile.in
@@ -799,6 +799,14 @@ uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
# as well.
check-install: installcheck
+# List all build rules defined by HDF5 Makefiles as "PHONY" targets here.
+# This tells the Makefiles that these targets are not files to be built but
+# commands that should be executed even if a file with the same name already
+# exists.
+.PHONY: build-check-clean build-check-p build-check-s build-lib build-progs \
+ build-tests check-clean check-install check-p check-s check-vfd \
+ install-doc lib progs tests uninstall-doc _exec_check-s _test
+
# Fortran module files can have different extensions and different names
# (e.g., different capitalizations) on different platforms. Write rules
# for them explicitly rather than trying to teach automake about them.
diff --git a/fortran/test/Makefile.in b/fortran/test/Makefile.in
index 99077d8..5ec25d3 100644
--- a/fortran/test/Makefile.in
+++ b/fortran/test/Makefile.in
@@ -808,6 +808,14 @@ uninstall-am: uninstall-info-am
# as well.
check-install: installcheck
+# List all build rules defined by HDF5 Makefiles as "PHONY" targets here.
+# This tells the Makefiles that these targets are not files to be built but
+# commands that should be executed even if a file with the same name already
+# exists.
+.PHONY: build-check-clean build-check-p build-check-s build-lib build-progs \
+ build-tests check-clean check-install check-p check-s check-vfd \
+ install-doc lib progs tests uninstall-doc _exec_check-s _test
+
# fflush2 depends on files created by fflush1
fflush2.chkexe_: fflush1.chkexe_
diff --git a/fortran/testpar/Makefile.in b/fortran/testpar/Makefile.in
index 8567bc4..3677dcd 100644
--- a/fortran/testpar/Makefile.in
+++ b/fortran/testpar/Makefile.in
@@ -606,6 +606,14 @@ uninstall-am: uninstall-info-am
# as well.
check-install: installcheck
+# List all build rules defined by HDF5 Makefiles as "PHONY" targets here.
+# This tells the Makefiles that these targets are not files to be built but
+# commands that should be executed even if a file with the same name already
+# exists.
+.PHONY: build-check-clean build-check-p build-check-s build-lib build-progs \
+ build-tests check-clean check-install check-p check-s check-vfd \
+ install-doc lib progs tests uninstall-doc _exec_check-s _test
+
# lib/progs/tests targets recurse into subdirectories. build-* targets
# build files in this directory.
# BUILT_SOURCES contain targets that need to be built before anything else