Skip to content

Commit 40a02e5

Browse files
programmingkidxmcayland
authored andcommitted
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@gmail.com> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/fcode-utils-devel@1335 f158a5a8-5612-0410-a976-696ce0be7e32
1 parent 89cd48d commit 40a02e5

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

detok/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
PROGRAM = detok
2626

27+
DESTDIR = /usr/local
2728
CC ?= gcc
2829
STRIP = strip
2930
INCLUDES = -I../shared
@@ -63,3 +64,6 @@ clean:
6364
.c.o:
6465
$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
6566

67+
install:
68+
mkdir -p $(DESTDIR)/bin
69+
cp $(PROGRAM) $(DESTDIR)/bin/$(PROGRAM)

romheaders/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
2323
#
2424

25+
PROGRAM = romheaders
26+
27+
DESTDIR = /usr/local
2528
CC ?= gcc
2629
STRIP = strip
2730
CFLAGS = -O2 -Wall -Wextra
@@ -39,4 +42,8 @@ romheaders: $(SOURCES)
3942

4043
clean:
4144
rm -f *~
42-
rm -f romheaders
45+
rm -f $(PROGRAM)
46+
47+
install:
48+
mkdir -p $(DESTDIR)/bin
49+
cp $(PROGRAM) $(DESTDIR)/bin/$(PROGRAM)

toke/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
PROGRAM = toke
2626

27+
DESTDIR = /usr/local
2728
CC ?= gcc
2829
STRIP = strip
2930
INCLUDES = -I../shared
@@ -73,3 +74,6 @@ documentation:: *.c *.h toke.doxygen
7374
.c.o:
7475
$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
7576

77+
install:
78+
mkdir -p $(DESTDIR)/bin
79+
cp $(PROGRAM) $(DESTDIR)/bin/$(PROGRAM)

0 commit comments

Comments
 (0)