From 60a986f504a2aa5ba95a760248a2e0b357d2e15c Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 4 Jun 2008 07:13:22 -0700 Subject: [PATCH] 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. --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1