]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
Makefile: Normalize $(bindir) and $(gitexecdir) before comparing
authorJohannes Sixt <johannes.sixt@telecom.at>
Mon, 21 Jul 2008 19:19:51 +0000 (21:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Jul 2008 00:41:12 +0000 (17:41 -0700)
commit46beb55988e68da04c2e9d319c71b9b940f0854c
treea2fe605f891d14795ace2d04071b703973b10954
parentc70a8d98a528f29bc6d6de7744e1eedd24f2a63d
Makefile: Normalize $(bindir) and $(gitexecdir) before comparing

The install target needs to check whether the user has opted to make
$(gitexecdir) equal to $(bindir). It did so by a straight string
comparison. Since we are going to allow a relative $(gitexecdir), we have
to normalize paths before comparison, which we do with $(cd there && pwd).

The normalized paths are stored in shell variables. These we can now
reuse in the subsequent install statements, which conveniently shortens
the lines a bit.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile