# [PATCH] Make tools use DESTDIR as well (otherwise rpm build is broken)

2 messages from 2005-08-16 to 2005-08-16. Participants: Chris Wright, Junio C Hamano.
Thread: https://gitlist.dev/t/1535

## Chris Wright, 2005-08-16 18:28

Subject: [PATCH] Make tools use DESTDIR as well (otherwise rpm build is broken)
Message-ID: <20050816182802.GH8041@shell0.pdx.osdl.net>
URL: https://gitlist.dev/e/20050816182802.GH8041%40shell0.pdx.osdl.net

```
Please pull from:
	rsync.kernel.org://pub/scm/linux/kernel/git/chrisw/git

This will give you the following trivial fix for the rpm build, where
tools was still using dest not DESTDIR.

thanks,
-chris
--

diff-tree 5eaaed02111510ff00b288a99ec3d203d5d1761f (from d9ac9df41c8c1c3a2f5b0fb1bcc0546dc1bafba2)
tree 636f8c808fd80fb886c5c8b96e854d7d9dea8591
parent d9ac9df41c8c1c3a2f5b0fb1bcc0546dc1bafba2
author Chris Wright <chrisw@osdl.org> 1124215389 -0700
committer Chris Wright <chrisw@osdl.org> 1124215389 -0700

    Make tools use DESTDIR as well (otherwise rpm build is broken).
    
    Signed-off-by: Chris Wright <chrisw@osdl.org>

diff --git a/tools/Makefile b/tools/Makefile
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -18,7 +18,7 @@ git-%: %.c
 all: $(PROGRAMS)
 
 install: $(PROGRAMS) $(SCRIPTS)
-	$(INSTALL) -m755 -d $(dest)$(bindir)
+	$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
 	$(INSTALL) $(PROGRAMS) $(SCRIPTS) $(DESTDIR)$(bindir)
 
 clean:

```

## Junio C Hamano, 2005-08-16 18:59

Subject: Re: [PATCH] Make tools use DESTDIR as well (otherwise rpm build is broken)
Message-ID: <7vd5odd7xg.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vd5odd7xg.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20050816182802.GH8041@shell0.pdx.osdl.net>

```
My bug.  Thanks.

```
