summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@linux.vnet.ibm.com>2007-06-29 09:53:23 -0500
committerJon Loeliger <jdl@freescale.com>2007-07-02 08:44:37 -0500
commit8cd4196ee3a9cc3d345f40f93e0a5f4493ce2d82 (patch)
tree7467735f72514b94b42844437dc78f6ddd05f6fd /Makefile
parent6936273aa40371811a99c3516b613d299792831b (diff)
downloaddtc-8cd4196ee3a9cc3d345f40f93e0a5f4493ce2d82.tar.gz
dtc: Add install makefile target
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 67eb4ce..a919bfa 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,10 @@ LDFLAGS = -Llibfdt
BISON = bison
+INSTALL = /usr/bin/install
+DESTDIR =
+BINDIR = /usr/bin
+
#
# Overall rules
#
@@ -113,3 +117,8 @@ endif
#
TESTS_PREFIX=tests/
include tests/Makefile.tests
+
+install: dtc ftdump
+ $(INSTALL) -d $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 dtc $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 ftdump $(DESTDIR)$(BINDIR)