build: Use separate STRIP program in host Makefile
This commit is contained in:
parent
6164580167
commit
ee4c1486cd
|
@ -1,4 +1,5 @@
|
|||
CC ?= cc
|
||||
STRIP ?= strip
|
||||
INSTALL ?= ./install-sh
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
|
@ -8,8 +9,8 @@ CFLAGS ?= -g -O2 -pipe -Wall -Wextra
|
|||
.PHONY: all
|
||||
all: limine-deploy limine-version limine-enroll-config
|
||||
|
||||
.PHONY: install-data
|
||||
install-data: all
|
||||
.PHONY: install
|
||||
install: all
|
||||
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/share'
|
||||
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/share/limine'
|
||||
$(INSTALL) -m 644 limine.sys '$(DESTDIR)$(PREFIX)/share/limine/'
|
||||
|
@ -20,20 +21,16 @@ install-data: all
|
|||
$(INSTALL) -m 644 BOOTIA32.EFI '$(DESTDIR)$(PREFIX)/share/limine/'
|
||||
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/include'
|
||||
$(INSTALL) -m 644 limine.h '$(DESTDIR)$(PREFIX)/include/'
|
||||
|
||||
.PHONY: install
|
||||
install: install-data
|
||||
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
||||
$(INSTALL) limine-deploy '$(DESTDIR)$(PREFIX)/bin/'
|
||||
$(INSTALL) limine-version '$(DESTDIR)$(PREFIX)/bin/'
|
||||
$(INSTALL) limine-enroll-config '$(DESTDIR)$(PREFIX)/bin/'
|
||||
|
||||
.PHONY: install-strip
|
||||
install-strip: install-data
|
||||
$(INSTALL) -d '$(DESTDIR)$(PREFIX)/bin'
|
||||
$(INSTALL) -s limine-deploy '$(DESTDIR)$(PREFIX)/bin/'
|
||||
$(INSTALL) -s limine-version '$(DESTDIR)$(PREFIX)/bin/'
|
||||
$(INSTALL) -s limine-enroll-config '$(DESTDIR)$(PREFIX)/bin/'
|
||||
install-strip: install
|
||||
$(STRIP) '$(DESTDIR)$(PREFIX)/bin/limine-deploy'
|
||||
$(STRIP) '$(DESTDIR)$(PREFIX)/bin/limine-version'
|
||||
$(STRIP) '$(DESTDIR)$(PREFIX)/bin/limine-enroll-config'
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
|
Loading…
Reference in New Issue