aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
authorJosh Triplett <josht@us.ibm.com>2006-08-29 17:41:46 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-08-29 19:09:31 -0700
commita0db384dbb4bbb605ccef2c4ed06e0850e75907b (patch)
treeb429d537912668fe44b59917a12934d6ae75249d /Makefile
parent6782538a6506448f964441e7e12d03235748c1da (diff)
downloadsparse-dev-a0db384dbb4bbb605ccef2c4ed06e0850e75907b.tar.gz
[PATCH] Use $(BINDIR) consistently in Makefile rather than $(PREFIX)/bin
The Makefile has variables for both PREFIX (default $(HOME)) and BINDIR (default $(PREFIX)/bin); however, it then uses $(PREFIX)/bin in several other places, making it difficult to install to an alternate BINDIR. Fix this by using $(BINDIR) consistently throughout the Makefile. Signed-off-by: Josh Triplett <josh@freedesktop.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 378ee726..6755e07e 100644
--- a/Makefile
+++ b/Makefile
@@ -45,11 +45,11 @@ all: $(PROGRAMS) $(SLIB_FILE)
# "The better to keep you on your toes, my dear".
#
install: check $(SLIB_FILE) bin-dir
- if test $< -nt $(PREFIX)/bin/sparse ; then install -v $< $(BINDIR)/sparse ; install -v $(SLIB_FILE) $(BINDIR) ; fi
+ if test $< -nt $(BINDIR)/sparse ; then install -v $< $(BINDIR)/sparse ; install -v $(SLIB_FILE) $(BINDIR) ; fi
bin-dir:
- @if ! test -d $(PREFIX)/bin; then \
- echo "No '$(PREFIX)/bin' directory to install in"; \
+ @if ! test -d $(BINDIR); then \
+ echo "No '$(BINDIR)' directory to install in"; \
echo "Please create it and add it to your PATH"; \
exit 1; \
fi