diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2000-01-26 14:50:12 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2000-01-26 14:50:12 (GMT) |
commit | e29f213cf969e0a23ea2af573c494bc8d38f0d14 (patch) | |
tree | b47a890d4935f18521d08d75d9f6ba0e01adb6fb /config/depend1.in | |
parent | b837e670406c1c5da2ed1726f092a43c7723fd99 (diff) | |
download | hdf5-e29f213cf969e0a23ea2af573c494bc8d38f0d14.zip hdf5-e29f213cf969e0a23ea2af573c494bc8d38f0d14.tar.gz hdf5-e29f213cf969e0a23ea2af573c494bc8d38f0d14.tar.bz2 |
[svn-r1949] Problem:
The Dependencies files were generated in $srcdir even when
--srcdir is used. It caused conflicts if multiple hosts
are doing make sharing the same $srcdir. It also violated
the rule that --srcdir would not modify the content of $srcdir
which could be on a read-only media like a CD-ROM.
Solution:
Dependencies files are generated in the "current" directory.
Platform tested:
dangermouse (linux), modi4 (IRIX64).
Diffstat (limited to 'config/depend1.in')
-rw-r--r-- | config/depend1.in | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config/depend1.in b/config/depend1.in index 62129b4..4a24846 100644 --- a/config/depend1.in +++ b/config/depend1.in @@ -20,14 +20,14 @@ ## otherwise the file is changed and a backup is saved by appending a ## tilde to the file name. ## -.PRECIOUS: $(srcdir)/Dependencies -$(srcdir)/Dependencies: .depend +.PRECIOUS: Dependencies +Dependencies: .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; \ + echo >>$@; \ perl -p $(top_srcdir)/bin/distdep .depend >>$@; \ fi @@ -49,11 +49,11 @@ $(srcdir)/Dependencies: .depend done; @if test "$(srcdir)" != "."; then \ echo '## This file is machine generated on GNU systems.' \ - >$(srcdir)/Dependencies; \ + >Dependencies; \ echo '## Only temporary changes may be made here.' \ - >>$(srcdir)/Dependencies; \ - echo >>$(srcdir)/Dependencies; \ - perl -p $(top_srcdir)/bin/distdep .depend>>$(srcdir)/Dependencies;\ + >>Dependencies; \ + echo >>Dependencies; \ + perl -p $(top_srcdir)/bin/distdep .depend>>Dependencies;\ fi -include .depend |