summaryrefslogtreecommitdiffstats
path: root/config/depend1.in
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-11-03 18:05:58 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-11-03 18:05:58 (GMT)
commit4051fa31870cb61a757d5d3930f41b3bd2475657 (patch)
tree0c57a0f614519e28f11c45a07d45fa697a63cf45 /config/depend1.in
parentc13e76ffeec1a574697d44c40953a36bdb72eddf (diff)
downloadhdf5-4051fa31870cb61a757d5d3930f41b3bd2475657.zip
hdf5-4051fa31870cb61a757d5d3930f41b3bd2475657.tar.gz
hdf5-4051fa31870cb61a757d5d3930f41b3bd2475657.tar.bz2
[svn-r1814] * 1999-11-03
** config/depend1.in We don't regenerate the Dependencies files if we're compiling in the source tree because `gcc -MM' doesn't output enough information to make the result usable when compiling outside the source tree. ** src/H5config.h.in Regenerated to include HAVE_LIBMPI and HAVE_LIBMPIO because of recent changes to configure.in
Diffstat (limited to 'config/depend1.in')
-rw-r--r--config/depend1.in26
1 files changed, 16 insertions, 10 deletions
diff --git a/config/depend1.in b/config/depend1.in
index ee51733..2988249 100644
--- a/config/depend1.in
+++ b/config/depend1.in
@@ -22,10 +22,14 @@
##
.PRECIOUS: $(srcdir)/Dependencies
$(srcdir)/Dependencies: .depend
- -@echo '## This file is machine generated on GNU systems.' >$@
- -@echo '## Only temporary changes may be made here.' >>@
- -@echo >>@
- -srcdir=$(srcdir) perl -p $(top_srcdir)/bin/distdep .depend >>$@
+ @if test "$(srcdir)" != "."; then \
+ echo '## This file is machine generated on GNU systems.' \
+ >$@; \
+ echo '## Only temporary changes may be made here.' \
+ >>$@; \
+ echo >>$(srcdir)/Dependencies; \
+ perl -p $(top_srcdir)/bin/distdep .depend >>$@; \
+ fi
.PRECIOUS: .depend
.depend: $(LIB_SRC) $(TEST_SRC) $(PROG_SRC)
@@ -43,12 +47,14 @@ $(srcdir)/Dependencies: .depend
sed 's/\.o/.lo/' >>$@; \
fi; \
done;
- -@echo '## This file is machine generated on GNU systems.' \
- >$(srcdir)/Dependencies
- -@echo '## Only temporary changes may be made here.' \
- >>$(srcdir)/Dependencies
- -@echo >>$(srcdir)/Dependencies
- -perl -p $(top_srcdir)/bin/distdep .depend >>$(srcdir)/Dependencies
+ @if test "$(srcdir)" != "."; then \
+ echo '## This file is machine generated on GNU systems.' \
+ >$(srcdir)/Dependencies; \
+ echo '## Only temporary changes may be made here.' \
+ >>$(srcdir)/Dependencies; \
+ echo >>$(srcdir)/Dependencies; \
+ perl -p $(top_srcdir)/bin/distdep .depend>>$(srcdir)/Dependencies;\
+ fi
-include .depend