LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dtc: Add install makefile target
@ 2007-06-29 13:56 Josh Boyer
  2007-06-29 14:34 ` Olaf Hering
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Boyer @ 2007-06-29 13:56 UTC (permalink / raw)
  To: jdl; +Cc: linuxppc-dev, david

Add a minimal install target

Signed-off-by: Josh Boyer <jwboyer@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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dtc: Add install makefile target
  2007-06-29 13:56 [PATCH] dtc: Add install makefile target Josh Boyer
@ 2007-06-29 14:34 ` Olaf Hering
  2007-06-29 14:50   ` Josh Boyer
  0 siblings, 1 reply; 3+ messages in thread
From: Olaf Hering @ 2007-06-29 14:34 UTC (permalink / raw)
  To: Josh Boyer; +Cc: linuxppc-dev, david

On Fri, Jun 29, Josh Boyer wrote:

> +DESTDIR = /
> +BINDIR = usr/bin

+DESTDIR=
+BINDIR=/usr/bin

Just like every other package out there.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dtc: Add install makefile target
  2007-06-29 14:34 ` Olaf Hering
@ 2007-06-29 14:50   ` Josh Boyer
  0 siblings, 0 replies; 3+ messages in thread
From: Josh Boyer @ 2007-06-29 14:50 UTC (permalink / raw)
  To: Olaf Hering; +Cc: linuxppc-dev, david

On Fri, 2007-06-29 at 16:34 +0200, Olaf Hering wrote:
> On Fri, Jun 29, Josh Boyer wrote:
> 
> > +DESTDIR = /
> > +BINDIR = usr/bin
> 
> +DESTDIR=
> +BINDIR=/usr/bin
> 
> Just like every other package out there.

Urgh.  I thought I had fixed that already.  Will resubmit.

josh

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-29 14:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-29 13:56 [PATCH] dtc: Add install makefile target Josh Boyer
2007-06-29 14:34 ` Olaf Hering
2007-06-29 14:50   ` Josh Boyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox