summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--apps/Makefile5
2 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 270a203..b8a6578 100644
--- a/Makefile
+++ b/Makefile
@@ -48,6 +48,7 @@ SUBDIRS = lib gnuefi inc apps
all: check_gcc $(SUBDIRS)
gnuefi: lib
+apps: gnuefi
mkvars:
@echo AR=$(AR)
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