Move stripping from install to LDFLAGS.
This allows to easily build and install an unstripped binary, e.g. for Fedora where stripping is performed by the build system to store the removed information in a debuginfo subpackage.
This commit is contained in:
parent
a58a8d2f58
commit
d240fe0994
3
Makefile
3
Makefile
|
@ -18,6 +18,7 @@
|
|||
CC = gcc
|
||||
INSTALL = /usr/bin/install
|
||||
PREFIX ?= /usr/local
|
||||
LDFLAGS ?= -s
|
||||
|
||||
ifdef WITHOUT_READLINE
|
||||
READLINE_CFLAGS =
|
||||
|
@ -48,7 +49,7 @@ clean:
|
|||
install: mspdebug mspdebug.man
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
$(INSTALL) -m 0755 -s mspdebug $(DESTDIR)$(PREFIX)/bin/mspdebug
|
||||
$(INSTALL) -m 0755 mspdebug $(DESTDIR)$(PREFIX)/bin/mspdebug
|
||||
$(INSTALL) -m 0644 mspdebug.man $(DESTDIR)$(PREFIX)/share/man/man1/mspdebug.1
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
|
|
Loading…
Reference in New Issue