]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
make: add INSTALL_STRIP option variable
authorBagas Sanjaya <bagasdotme@gmail.com>
Sun, 5 Sep 2021 19:17:56 +0000 (12:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Sep 2021 06:49:41 +0000 (23:49 -0700)
commit3231f410090491a6a8fa1b110d1518c6a5786bad
treed6887a53f5956124b8e8ca14aa32666cffb5e615
parent6c40894d2466d4e7fddc047a05116aa9d14712ee
make: add INSTALL_STRIP option variable

Add $(INSTALL_STRIP), which allows passing stripping options to
$(INSTALL).

For this to work, installing executables must be split to installing
compiled binaries and scripts portions, since $(INSTALL_STRIP) is only
meaningful to the former.

Users can set this variable depending on their system. For example,
Linux users can use `-s --strip-program=strip`, while FreeBSD users can
simply set to `-s` and choose strip program with $STRIPBIN.

[original outline by Đoàn Trần Công Danh]

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile