]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Improved the proto.h target so that a build in a different dir from the
authorWayne Davison <wayned@samba.org>
Wed, 4 Jun 2008 14:13:22 +0000 (07:13 -0700)
committerWayne Davison <wayned@samba.org>
Wed, 4 Jun 2008 14:13:22 +0000 (07:13 -0700)
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.

Makefile.in

index b91b3e9781956544e0558ac005c6c916654c35f9..8a021d1d9325e5fe1179ef01c93559fc5cb8f0db 100644 (file)
@@ -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