Previously to install Git with stripped binaries, users have to do `make
all` then `make strip` before doing `make install`. It is nice to have
`install-strip` target for convenience, so that they can simply type
`make install-strip` and have Git with stripped binaries installed.
On some environments where disk space and resources is limited (such as
embedded systems), installed size can be smaller that with non-stripped
binaries.
Also mention the target in INSTALL.
Signed-off-by: Bagas Sanjaya <redacted>
---
INSTALL | 5 +++++
Makefile | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
@@ -25,6 +25,11 @@ set up install paths (via config.mak.autogen), so you can write instead $ make all doc ;# as yourself # make install install-doc install-html;# as root+If you're tight on space (common on embedded systems), you can install+with debugging info stripped with++ # make install-strip+ If you're willing to trade off (much) longer build time for a later faster git you can also do a profile feedback build with
Would those `all` and `strip` targets interfere with one another if `make
-j2` was called? If not, wouldn't it be sufficient to let `install-strip`
depend on `strip` alone?
Ciao,
Dscho
From: Eric Sunshine <hidden> Date: 2021-08-17 21:49:17
On Tue, Aug 17, 2021 at 5:29 PM Johannes Schindelin
[off-list ref] wrote:
On Tue, 17 Aug 2021, Bagas Sanjaya wrote:
quoted
diff --git a/Makefile b/Makefile
@@ -3093,6 +3093,9 @@ endif+install-strip: all strip
Would those `all` and `strip` targets interfere with one another if `make
-j2` was called? If not, wouldn't it be sufficient to let `install-strip`
depend on `strip` alone?
A more pertinent question, perhaps, is why would we need
`install-strip` at all? What benefit does it provide over simply
typing `make strip install`?
From: Johannes Schindelin <hidden> Date: 2021-08-18 10:26:00
Hi Eric,
On Tue, 17 Aug 2021, Eric Sunshine wrote:
On Tue, Aug 17, 2021 at 5:29 PM Johannes Schindelin
[off-list ref] wrote:
quoted
On Tue, 17 Aug 2021, Bagas Sanjaya wrote:
quoted
diff --git a/Makefile b/Makefile
@@ -3093,6 +3093,9 @@ endif+install-strip: all strip
Would those `all` and `strip` targets interfere with one another if `make
-j2` was called? If not, wouldn't it be sufficient to let `install-strip`
depend on `strip` alone?
A more pertinent question, perhaps, is why would we need
`install-strip` at all? What benefit does it provide over simply
typing `make strip install`?
I am not quite certain that this is compatible with other `make`
implementations we still might support (if there are any, I remember that
we often have to rely on `gmake` because the native `make` does not
understand our `Makefile`?), so that might need to be conditional on GNU
Make.
Ciao,
Dscho