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(a)gmail.com>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland(a)ilande.co.uk>
---
fcode-utils-devel/detok/Makefile | 4 ++++
fcode-utils-devel/romheaders/Makefile | 9 ++++++++-
fcode-utils-devel/toke/Makefile | 4 ++++
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/fcode-utils-devel/detok/Makefile b/fcode-utils-devel/detok/Makefile
index 0b730dc..3ba6c30 100644
--- a/fcode-utils-devel/detok/Makefile
+++ b/fcode-utils-devel/detok/Makefile
@@ -24,6 +24,7 @@
PROGRAM = detok
+DESTDIR = /usr/local
CC ?= gcc
STRIP = strip
INCLUDES = -I../shared
@@ -63,3 +64,6 @@ clean:
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
+install:
+ mkdir -p $(DESTDIR)/bin
+ cp $(PROGRAM) $(DESTDIR)/bin/$(PROGRAM)
diff --git a/fcode-utils-devel/romheaders/Makefile b/fcode-utils-devel/romheaders/Makefile
index 7d47a21..a216e7b 100644
--- a/fcode-utils-devel/romheaders/Makefile
+++ b/fcode-utils-devel/romheaders/Makefile
@@ -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 @@ romheaders: $(SOURCES)
clean:
rm -f *~
- rm -f romheaders
+ rm -f $(PROGRAM)
+
+install:
+ mkdir -p $(DESTDIR)/bin
+ cp $(PROGRAM) $(DESTDIR)/bin/$(PROGRAM)
diff --git a/fcode-utils-devel/toke/Makefile b/fcode-utils-devel/toke/Makefile
index a3d81b1..aa75acd 100644
--- a/fcode-utils-devel/toke/Makefile
+++ b/fcode-utils-devel/toke/Makefile
@@ -24,6 +24,7 @@
PROGRAM = toke
+DESTDIR = /usr/local
CC ?= gcc
STRIP = strip
INCLUDES = -I../shared
@@ -73,3 +74,6 @@ documentation:: *.c *.h toke.doxygen
.c.o:
$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
+install:
+ mkdir -p $(DESTDIR)/bin
+ cp $(PROGRAM) $(DESTDIR)/bin/$(PROGRAM)
--
1.7.10.4