summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-11-23 19:35:49 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-11-23 19:35:49 (GMT)
commit6dce9147330832b925817d4ab8fe6ca539572240 (patch)
treec6136eeba645c89cff08bad8a242be92cb918c7c
parente520c237d574be95938cf89a217d76d3f9bc93a5 (diff)
downloadhdf5-6dce9147330832b925817d4ab8fe6ca539572240.zip
hdf5-6dce9147330832b925817d4ab8fe6ca539572240.tar.gz
hdf5-6dce9147330832b925817d4ab8fe6ca539572240.tar.bz2
[svn-r1846] ** config/depend1
A minor tweak to the way GNU systems generate file dependencies for the Makefiles.
-rw-r--r--config/depend1.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/depend1.in b/config/depend1.in
index 2988249..62129b4 100644
--- a/config/depend1.in
+++ b/config/depend1.in
@@ -37,8 +37,8 @@ $(srcdir)/Dependencies: .depend
@for dep in $? dummy; do \
if [ $$dep != "dummy" ]; then \
echo Building dependencies for $$dep; \
- obj=`echo $$dep | sed 's/\.c/\\\\.lo/'`; \
- sed '\%$$obj%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
+ obj=`basename $$dep .c`.lo; \
+ sed '\%^'"$$obj"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@; \
$(TRACE) $$dep; \
$(CC) -M -MG $(CPPFLAGS) $$dep 2>/dev/null | \
sed 's% $(srcdir)/% $$(srcdir)/%g' | \