Makefile: don't use a versioned temp distribution directory
commitc5312033dd81771def2268d57f64e5551d9e11bf
authorRamsay Jones <ramsay@ramsayjones.plus.com>
Tue, 8 Dec 2020 22:36:33 +0000 (8 22:36 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Dec 2020 00:56:56 +0000 (8 16:56 -0800)
treecfc235fd2df74af9690fc964c0c2a94aa7e49a99
parent98836a8a127c6d6f31d5976a757b33ae4ca048e9
Makefile: don't use a versioned temp distribution directory

The 'dist' target uses a versioned temp directory, $(GIT_TARNAME), into
which it copies various files added to the distribution tarball. Should
it be necessary to remove this directory in the 'clean' target, since
the name depends on $(GIT_VERSION), the current HEAD must be positioned
on the same commit as when 'make dist' was issued. Otherwise, the target
will fail to remove that directory.

Create an '.dist-tmp-dir' directory and copy the various files into this
now un-versioned directory while creating the distribution tarball. Change
the 'clean' target to remove the '.dist-tmp-dir' directory, instead of the
version dependent $(GIT_TARNAME) directory.

Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile