diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2000-11-15 17:49:29 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2000-11-15 17:49:29 (GMT) |
commit | 6e21430e32b0975a50e7a939f58a7e69741e2ada (patch) | |
tree | 4603c3af1bb373b1a193aa6be6f4f6c414073efb /fortran/config | |
parent | 6d4c58fb7d768e94a3c61e45ccfde00074615f7b (diff) | |
download | hdf5-6e21430e32b0975a50e7a939f58a7e69741e2ada.zip hdf5-6e21430e32b0975a50e7a939f58a7e69741e2ada.tar.gz hdf5-6e21430e32b0975a50e7a939f58a7e69741e2ada.tar.bz2 |
[svn-r2930] Purpose:
Fix
Description:
Changed so that tracing is done on .c files and not .f90 files,
which it wouldn't be able to handle.
Platforms tested:
Linux
Diffstat (limited to 'fortran/config')
-rw-r--r-- | fortran/config/depend1.in | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/fortran/config/depend1.in b/fortran/config/depend1.in index bde94ed..144c745 100644 --- a/fortran/config/depend1.in +++ b/fortran/config/depend1.in @@ -20,41 +20,35 @@ ## otherwise the file is changed and a backup is saved by appending a ## tilde to the file name. ## -.PRECIOUS: Dependencies $(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 >>$@; \ + 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 -.PRECIOUS: .depend .depend: $(LIB_SRC) $(TEST_SRC) $(PROG_SRC) @touch .depend @for dep in $? dummy; do \ if [ $$dep != "dummy" ]; then \ - 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/' >>$@; \ + case "$$dep" in \ + *.c) \ + echo Building dependencies for $$dep; \ + obj=`basename $$dep .c`.lo; \ + sed '\%^'"$$obj"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \ + $(top_srcdir)/$(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; - @if test "$(srcdir)" != "."; then \ - echo '## This file is machine generated on GNU systems.' \ - >Dependencies; \ - echo '## Only temporary changes may be made here.' \ - >>Dependencies; \ - echo >>Dependencies; \ - perl -p $(top_srcdir)/bin/distdep .depend>>Dependencies;\ - fi -include .depend |