summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2006-12-14 00:59:41 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2006-12-14 00:59:41 +0000
commitc113b5707251218a30958f24f9f1c8d45dec8d5c (patch)
tree2b966a9a0a065bd684df5b9841a1a3ea40fa5f57 /Makefile
parentc22f542c743ff24f2a1b99cfb03f9b74e8ff294d (diff)
downloadast2050-flashrom-c113b5707251218a30958f24f9f1c8d45dec8d5c.zip
ast2050-flashrom-c113b5707251218a30958f24f9f1c8d45dec8d5c.tar.gz
Add an install target to the flashrom Makefile which installs flashrom into /usr/local/bin
Corresponding to flashrom svn r82 and coreboot v2 svn r2524. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 46f3c9f..360952d 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ PROGRAM = flashrom
CC = gcc
STRIP = strip
+INSTALL = /usr/bin/install
+PREFIX = /usr/local
#CFLAGS = -O2 -g -Wall -Werror
CFLAGS = -Os -Wall -Werror -DDISABLE_DOC # -DTS5300
LDFLAGS = -lpci -lz -static
@@ -45,6 +47,9 @@ pciutils:
rm -f .test.c .test; exit 1)
@rm -f .test.c .test
+install: $(PROGRAM)
+ $(INSTALL) flashrom $(PREFIX)/bin
+
.PHONY: all clean distclean dep pciutils
-include .dependencies
OpenPOWER on IntegriCloud