build: Add install target to limine-install Makefile
This commit is contained in:
parent
84c41d3854
commit
0efa2e16c8
1
Makefile
1
Makefile
|
@ -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/
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue