mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[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:
parent
b837e67040
commit
e29f213cf9
@ -173,6 +173,6 @@ maintainer-clean: distclean
|
||||
## source files and the header files.
|
||||
##-----------------------------------------------------------------------------
|
||||
.PHONY: dep depend
|
||||
dep depend: $(srcdir)/Dependencies
|
||||
dep depend: Dependencies
|
||||
|
||||
@DEPEND@
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user