[PATCH] dtc: Add install makefile target
Josh Boyer
jwboyer at linux.vnet.ibm.com
Fri Jun 29 23:56:14 EST 2007
Add a minimal install target
Signed-off-by: Josh Boyer <jwboyer at linux.vnet.ibm.com>
---
Makefile | 9 +++++++++
1 file changed, 9 insertions(+)
--- dtc.orig/Makefile
+++ dtc/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)
More information about the Linuxppc-dev
mailing list