rocky / remake

Enhanced GNU Make - tracing, error reporting, debugging, profiling and more
http://bashdb.sf.net/remake
GNU General Public License v3.0
785 stars 73 forks source link

Ensure consistent results if autogen.sh is run more than once #145

Closed duncan-roe closed 1 year ago

duncan-roe commented 1 year ago

Without this patch, make dist after a second autogen.sh will generate a Makefile.in that differs from after the first autogen.sh:

diff t5/remake-4.3-1+dbg-1.6/Makefile.in t6/remake-4.3-1+dbg-1.6/Makefile.in 334c334,335 < build-aux/install-sh build-aux/missing

  build-aux/install-sh build-aux/mdate-sh build-aux/missing \
  build-aux/texinfo.tex

But that is the only difference(!). Make install results from either tarball are identical.

However the small change above does result in make dist-xz adding 440 bytes to the tarball.

duncan-roe commented 1 year ago

Hi Rocky,

When I first noticed this discrepancy, I thought it would have serious consequences. Spent some time checking for them but found there weren't any. This patch might save someone else's time doing the same.