build: Add install target to limine-install Makefile

This commit is contained in:
mintsuki 2021-03-18 05:24:40 +01:00
parent 84c41d3854
commit 0efa2e16c8
2 changed files with 14 additions and 0 deletions

View File

@ -24,6 +24,7 @@ install: all
install -d $(DESTDIR)$(PREFIX)/share
install -m 644 bin/limine.sys $(DESTDIR)$(PREFIX)/share/
install -m 644 bin/limine-cd.bin $(DESTDIR)$(PREFIX)/share/
install -m 644 bin/limine-eltorito-efi.bin $(DESTDIR)$(PREFIX)/share/
install -m 644 bin/limine-pxe.bin $(DESTDIR)$(PREFIX)/share/
install -m 644 bin/BOOTX64.EFI $(DESTDIR)$(PREFIX)/share/

View File

@ -1,3 +1,6 @@
PREFIX = /usr/local
DESTDIR =
OBJCOPY = objcopy
OBJCOPY_ARCH = default
LIMINE_HDD_BIN = limine-hdd.bin
@ -9,6 +12,16 @@ CFLAGS = -O2 -pipe -Wall -Wextra
all: limine-install
install: all
install -d $(DESTDIR)$(PREFIX)/bin
install -s limine-install $(DESTDIR)$(PREFIX)/bin/
install -d $(DESTDIR)$(PREFIX)/share
install -m 644 limine.sys $(DESTDIR)$(PREFIX)/share/
install -m 644 limine-cd.bin $(DESTDIR)$(PREFIX)/share/
install -m 644 limine-eltorito-efi.bin $(DESTDIR)$(PREFIX)/share/
install -m 644 limine-pxe.bin $(DESTDIR)$(PREFIX)/share/
install -m 644 BOOTX64.EFI $(DESTDIR)$(PREFIX)/share/
clean:
rm -f limine-hdd.o limine-install