From: Wayne Davison Date: Wed, 4 Jun 2008 14:13:22 +0000 (-0700) Subject: Improved the proto.h target so that a build in a different dir from the X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/60a986f504a2aa5ba95a760248a2e0b357d2e15c 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. --- 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