[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).
This commit is contained in:
Albert Cheng 2000-01-26 09:50:12 -05:00
parent b837e67040
commit e29f213cf9
5 changed files with 11 additions and 11 deletions

View File

@ -173,6 +173,6 @@ maintainer-clean: distclean
## source files and the header files.
##-----------------------------------------------------------------------------
.PHONY: dep depend
dep depend: $(srcdir)/Dependencies
dep depend: Dependencies
@DEPEND@

View File

@ -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

View File

@ -8,4 +8,4 @@
## `.distdep' file from the source tree. This file was automatically generated
## on some system that satisfies the above requirements.
-include $(srcdir)/Dependencies
-include Dependencies

View File

@ -4,4 +4,4 @@
## `.distdep' file from the source tree. This file was automatically generated
## on some system that satisfies the above requirements.
.include <$(srcdir)/Dependencies>
.include <Dependencies>

View File

@ -4,4 +4,4 @@
## `.distdep' file from the source tree. This file was automatically generated
## on some system that satisfies the above requirements.
include $(srcdir)/Dependencies
include Dependencies