aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-02-28 12:35:04 +0800
committerJeremy Kerr <jk@ozlabs.org>2015-03-04 16:01:23 +0800
commit6669d8655e0d3e7e184fd55e7db409403bd805b9 (patch)
tree62cac2af8cbe198fb961dc0bf3f020160f0ef627 /external
parent446a72c9f93d9d8a88440102138d7f19d88b9d91 (diff)
downloadskiboot-6669d8655e0d3e7e184fd55e7db409403bd805b9.zip
skiboot-6669d8655e0d3e7e184fd55e7db409403bd805b9.tar.gz
skiboot-6669d8655e0d3e7e184fd55e7db409403bd805b9.tar.bz2
external/opal-prd: Add install target
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'external')
-rw-r--r--external/opal-prd/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/external/opal-prd/Makefile b/external/opal-prd/Makefile
index e69c4a3..4f4175c 100644
--- a/external/opal-prd/Makefile
+++ b/external/opal-prd/Makefile
@@ -5,6 +5,9 @@ LDFLAGS = -m64
ASFLAGS = -m64
CPPFLAGS = -I. -I../../include -I../../
+prefix = /usr/local/
+sbindir = $(prefix)/sbin
+
# Use make V=1 for a verbose build.
ifndef V
Q_CC= @echo ' CC ' $@;
@@ -50,6 +53,9 @@ test: test/test_pnor
test/test_pnor: test/test_pnor.o pnor.o libflash/libflash.o libflash/libffs.o
$(Q_LINK)$(LINK.o) -o $@ $^
+install: all
+ install -D opal-prd $(DESTDIR)$(sbindir)/opal-prd
+
clean:
$(RM) *.[odsa] opal-prd
$(RM) test/*.[odsa] test/test_pnor