Improved the proto.h target so that a build in a different dir from the
[rsync/rsync.git] / Makefile.in
index b91b3e9..8a021d1 100644 (file)
@@ -146,7 +146,7 @@ Makefile: Makefile.in config.status
 proto: proto.h-tstamp
 
 proto.h: proto.h-tstamp
 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
 
 proto.h-tstamp: $(srcdir)/*.c $(srcdir)/lib/compat.c
        perl $(srcdir)/mkproto.pl $(srcdir)/*.c $(srcdir)/lib/compat.c