[OpenBIOS] [commit] r1335 - in trunk/fcode-utils-devel: detok romheaders toke
repository service
svn at openbios.org
Sun Apr 26 21:49:23 CEST 2015
Author: mcayland
Date: Sun Apr 26 21:49:15 2015
New Revision: 1335
URL: http://tracker.coreboot.org/trac/openbios/changeset/1335
Log:
fcode-utils: add Makefile install target
Add an install target to the fcode-utils Makefiles for toke, detok and
romheaders so that "make install" will work correctly.
Signed-off-by: John Arbuckle <programmingkidx at gmail.com>
Reviewed-by: Andreas Färber <afaerber at suse.de>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
Modified:
trunk/fcode-utils-devel/detok/Makefile
trunk/fcode-utils-devel/romheaders/Makefile
trunk/fcode-utils-devel/toke/Makefile
Modified: trunk/fcode-utils-devel/detok/Makefile
==============================================================================
--- trunk/fcode-utils-devel/detok/Makefile Wed Mar 11 23:58:20 2015 (r1334)
+++ trunk/fcode-utils-devel/detok/Makefile Sun Apr 26 21:49:15 2015 (r1335)
@@ -24,6 +24,7 @@
PROGRAM = detok
+DESTDIR = /usr/local
CC ?= gcc
STRIP = strip
INCLUDES = -I../shared
@@ -63,3 +64,6 @@
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
+install:
+ mkdir -p $(DESTDIR)/bin
+ cp $(PROGRAM) $(DESTDIR)/bin/$(PROGRAM)
Modified: trunk/fcode-utils-devel/romheaders/Makefile
==============================================================================
--- trunk/fcode-utils-devel/romheaders/Makefile Wed Mar 11 23:58:20 2015 (r1334)
+++ trunk/fcode-utils-devel/romheaders/Makefile Sun Apr 26 21:49:15 2015 (r1335)
@@ -22,6 +22,9 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
#
+PROGRAM = romheaders
+
+DESTDIR = /usr/local
CC ?= gcc
STRIP = strip
CFLAGS = -O2 -Wall -Wextra
@@ -39,4 +42,8 @@
clean:
rm -f *~
- rm -f romheaders
+ rm -f $(PROGRAM)
+
+install:
+ mkdir -p $(DESTDIR)/bin
+ cp $(PROGRAM) $(DESTDIR)/bin/$(PROGRAM)
Modified: trunk/fcode-utils-devel/toke/Makefile
==============================================================================
--- trunk/fcode-utils-devel/toke/Makefile Wed Mar 11 23:58:20 2015 (r1334)
+++ trunk/fcode-utils-devel/toke/Makefile Sun Apr 26 21:49:15 2015 (r1335)
@@ -24,6 +24,7 @@
PROGRAM = toke
+DESTDIR = /usr/local
CC ?= gcc
STRIP = strip
INCLUDES = -I../shared
@@ -73,3 +74,6 @@
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
+install:
+ mkdir -p $(DESTDIR)/bin
+ cp $(PROGRAM) $(DESTDIR)/bin/$(PROGRAM)
More information about the OpenBIOS
mailing list