[coreboot-gerrit] New patch to review for coreboot: cbfstool: Makefile: Add install target
Denis Carikli (GNUtoo@no-log.org)
gerrit at coreboot.org
Wed Nov 11 06:08:13 CET 2015
Denis Carikli (GNUtoo at no-log.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12403
-gerrit
commit cb38436dcc6c76df43862c777f0e2004332a21f0
Author: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
Date: Wed Nov 11 05:27:25 2015 +0100
cbfstool: Makefile: Add install target
Change-Id: I5df7033e1e52c78e97cdbd26aef2d7824ea67f8b
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
---
util/cbfstool/Makefile | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/util/cbfstool/Makefile b/util/cbfstool/Makefile
index 64db0b3..662a5a4 100644
--- a/util/cbfstool/Makefile
+++ b/util/cbfstool/Makefile
@@ -3,10 +3,14 @@ objutil ?= $(top)/util
CONFIG_FMD_GENPARSER := y
-HOSTCC ?= $(CC)
+HOSTCC ?= $(CC)
+INSTALL ?= /usr/bin/install
+PREFIX ?= /usr/local
-.PHONY: all
-all: $(objutil)/cbfstool/cbfstool \
+all: cbfstool
+
+.PHONY: cbfstool
+cbfstool: $(objutil)/cbfstool/cbfstool \
$(objutil)/cbfstool/fmaptool \
$(objutil)/cbfstool/rmodtool \
@@ -17,4 +21,11 @@ clean:
$(RM) $(objutil)/cbfstool/fmaptool $(fmapobj)
$(RM) $(objutil)/cbfstool/rmodtool $(rmodobj)
+.PHONY: install
+install: cbfstool
+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) cbfstool $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) fmaptool $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) rmodtool $(DESTDIR)$(PREFIX)/bin
+
include Makefile.inc
More information about the coreboot-gerrit
mailing list