The Samba-Bugzilla – Bug 11594
unnecessary build time dependency (mkproto.pl, perl)
Last modified: 2015-11-09 14:44:34 UTC
When building rsync from its distfile,
perl ./mkproto.pl ./*.c ./lib/compat.c
will always run, even though up-to-date versions of proto.h and
proto.h-tstamp are provided by the distfile.
The reason is the following target:
proto.h-tstamp: $(srcdir)/*.c $(srcdir)/lib/compat.c config.h
perl $(srcdir)/mkproto.pl $(srcdir)/*.c $(srcdir)/lib/compat.c
which declares config.h (created by the configure script, obviously
always newer than the proto.h file provided by the distfile) as its
source without actually using the file.
Removing config.h from the list of proto.h-tstamp sources eliminates
the need for perl when building rsync from its distfile.