summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorCallum Farmer <gmbr3@opensuse.org>2023-03-05 13:20:45 +0000
committerCallum Farmer <gmbr3@opensuse.org>2023-03-06 13:36:27 +0000
commit3f9a6569293a1b388e7f3cbcf09fb80bc29dae91 (patch)
tree36d9fa112338ee24e340ac84793cc8d1d6b5b035 /apps
parentd78b78cb2eb346b8094bb310520eee87d7547a72 (diff)
downloadgnu-efi-3f9a6569293a1b388e7f3cbcf09fb80bc29dae91.tar.gz
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>
Diffstat (limited to 'apps')
-rw-r--r--apps/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 4e1b69a..cdfb257 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -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