apps: Fix Makefile install and ordering
Create a new directory called $APPSDIR which is the default install location of these examples. apps must be ordered after gnuefi target. Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
parent
d78b78cb2e
commit
3f9a656929
1
Makefile
1
Makefile
@ -48,6 +48,7 @@ SUBDIRS = lib gnuefi inc apps
|
||||
all: check_gcc $(SUBDIRS)
|
||||
|
||||
gnuefi: lib
|
||||
apps: gnuefi
|
||||
|
||||
mkvars:
|
||||
@echo AR=$(AR)
|
||||
|
@ -44,6 +44,7 @@ TOPDIR = $(SRCDIR)/..
|
||||
|
||||
CDIR=$(TOPDIR)/..
|
||||
LINUX_HEADERS = /usr/src/sys/build
|
||||
APPSDIR = $(LIBDIR)/gnuefi/apps
|
||||
CPPFLAGS += -D__KERNEL__ -I$(LINUX_HEADERS)/include
|
||||
CRTOBJS = ../gnuefi/crt0-efi-$(ARCH).o
|
||||
|
||||
@ -90,6 +91,10 @@ all: $(TARGETS)
|
||||
clean:
|
||||
rm -f $(TARGETS) *~ *.o *.so
|
||||
|
||||
install:
|
||||
mkdir -p $(INSTALLROOT)$(APPSDIR)
|
||||
$(INSTALL) -m 644 $(TARGETS) $(INSTALLROOT)$(APPSDIR)
|
||||
|
||||
.PHONY: install
|
||||
|
||||
include $(SRCDIR)/../Make.rules
|
||||
|
Loading…
Reference in New Issue
Block a user