aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-06-04 07:13:22 -0700
committerWayne Davison <wayned@samba.org>2008-06-04 07:13:22 -0700
commit60a986f504a2aa5ba95a760248a2e0b357d2e15c (patch)
tree877907bacbf92bc8cb985d3c73a2fa42b5baecb8 /Makefile.in
parent0e9c3564c6763e4d99d7b518ccc27e60de622a3b (diff)
downloadandroid_external_rsync-60a986f504a2aa5ba95a760248a2e0b357d2e15c.tar.gz
android_external_rsync-60a986f504a2aa5ba95a760248a2e0b357d2e15c.tar.bz2
android_external_rsync-60a986f504a2aa5ba95a760248a2e0b357d2e15c.zip
Improved the proto.h target so that a build in a different dir from the
srcdir will ensure that the builddir has a copy of the proto.h file when the Makefile found it to be out of date. This prevents the repeated building of all the targets when the srcdir's proto.h file is accurate, but older than the newest .c file.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index b91b3e97..8a021d1d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -146,7 +146,7 @@ Makefile: Makefile.in config.status
proto: proto.h-tstamp
proto.h: proto.h-tstamp
- @echo ' ' >/dev/null
+ @if test -f proto.h; then :; else cp -p $(srcdir)/proto.h .; fi
proto.h-tstamp: $(srcdir)/*.c $(srcdir)/lib/compat.c
perl $(srcdir)/mkproto.pl $(srcdir)/*.c $(srcdir)/lib/compat.c