summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2003-06-05 21:48:41 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2003-06-05 21:48:41 (GMT)
commitbb79a09646de07809663dc694fe906edb6c4b9df (patch)
treebadac70362ee68b1c5133111e5de2fbca3bd8355 /fortran
parente747ba6bed5dffa269020a4d2416bd7582f22f0d (diff)
downloadhdf5-bb79a09646de07809663dc694fe906edb6c4b9df.zip
hdf5-bb79a09646de07809663dc694fe906edb6c4b9df.tar.gz
hdf5-bb79a09646de07809663dc694fe906edb6c4b9df.tar.bz2
[svn-r6980] Purpose:
Bug Fix Description: The Dependencies file wasn't being generated correctly. Solution: The depned1.in file had old stuff in it. Replaced it with a copy of the depend1.in file from the C++ directory. Platforms tested: Verbena (Only affects GNU platforms). Misc. update:
Diffstat (limited to 'fortran')
-rw-r--r--fortran/config/depend1.in47
1 files changed, 22 insertions, 25 deletions
diff --git a/fortran/config/depend1.in b/fortran/config/depend1.in
index b46d0e8..eaa7488 100644
--- a/fortran/config/depend1.in
+++ b/fortran/config/depend1.in
@@ -21,34 +21,31 @@
## tilde to the file name.
##
$(srcdir)/Dependencies: .depend
- @if test "$(srcdir)" != "."; then \
- echo '## This file is machine generated on GNU systems.' >$@; \
- echo '## Only temporary changes may be made here.' >>$@; \
- echo >>$@; \
- perl -p $(top_srcdir)/bin/distdep .depend >>$@; \
- else \
- echo 'Dependencies cannot be built when $$srcdir == $$builddir'; \
- fi
+ @if test "$(srcdir)" != "."; then \
+ echo '## This file is machine generated on GNU systems.' >$@; \
+ echo '## Only temporary changes may be made here.' >>$@; \
+ echo >>$@; \
+ $(PERL) -p $(top_srcdir)/bin/distdep .depend >>$@; \
+ else \
+ echo 'Dependencies cannot be built when $$srcdir == $$builddir'; \
+ fi
.depend: $(LIB_SRC) $(TEST_SRC) $(PROG_SRC)
@touch .depend
- @for dep in $? dummy; do \
- if [ $$dep != "dummy" ]; then \
- case "$$dep" in \
- *.c) \
- echo Building dependencies for $$dep; \
- obj=`basename $$dep .c`.lo; \
- sed '\%^'"$$obj"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
- $(TRACE) $$dep; \
- $(CC) -M -MG $(CPPFLAGS) $$dep 2>/dev/null | \
- sed 's% $(srcdir)/% $$(srcdir)/%g' | \
- sed 's% $(top_srcdir)/% $$(top_srcdir)/%g' | \
- sed 's% $(top_builddir)/% $$(top_builddir)/%g' | \
- sed 's/\.o/.lo/' >>$@; \
- ;; \
- esac; \
- fi; \
- done;
+ @for dep in $? dummy; do \
+ if test $$dep != "dummy" -a -n "$(PERL)"; then \
+ case "$$dep" in \
+ *.c) \
+ echo Building dependencies for $$dep; \
+ obj=`basename $$dep .c`.lo; \
+ sed '\%^'"$$obj"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
+ $(TRACE) $$dep; \
+ $(CC) -MM -MG $(CPPFLAGS) $$dep 2>/dev/null >>$@; \
+ $(PERL) -w $(top_srcdir)/bin/dependencies --srcdir=$(srcdir) --top_srcdir=$(top_srcdir) --top_builddir=$(top_builddir) $@; \
+ ;; \
+ esac; \
+ fi; \
+ done
-include .depend