[gtk-mac-bundler] Revert "Allow user to override install location."



commit b009d13eb33610f87ebe80566ff4518f35e9b612
Author: John Ralls <jralls ceridwen us>
Date:   Tue Nov 30 11:22:05 2021 -0800

    Revert "Allow user to override install location."
    
    This reverts commit 9ecfd3d097371a98530f9cf537e5cb1926501fcd because
    it doesn't work: You can't conditionally set variables in Makefiles.

 Makefile  | 10 ++++------
 README.md |  9 ++++-----
 2 files changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/Makefile b/Makefile
index c463bfc..0238879 100644
--- a/Makefile
+++ b/Makefile
@@ -2,17 +2,15 @@ PACKAGE = gtk-mac-bundler
 VERSION = 0.7.4
 OLD_VERSION = 0.7.3
 
-if test "x$(BINDIR)" == "x"; then \
-  BINDIR="$(HOME)/.local/bin"; \
-fi
+bindir=$(HOME)/.local/bin
 
 all:
        @echo 'Run "make install" to install.'
 
 install:
-       @mkdir -p $(BINDIR)
-       @SED "s,@PATH@,`pwd`,g" < gtk-mac-bundler.in > $(BINDIR)/gtk-mac-bundler
-       @chmod a+x $(BINDIR)/gtk-mac-bundler
+       @mkdir -p $(bindir)
+       @sed "s,@PATH@,`pwd`,g" < gtk-mac-bundler.in > $(bindir)/gtk-mac-bundler
+       @chmod a+x $(bindir)/gtk-mac-bundler
 
 distdir = $(PACKAGE)-$(VERSION)
 dist:
diff --git a/README.md b/README.md
index efa670e..76c846c 100644
--- a/README.md
+++ b/README.md
@@ -18,11 +18,10 @@ module is built in to the Pango library, by using the configure flag:
 
 ## Setting up
 
-Run `make install`; this installs the script into $HOME/.local/bin by
-default. You can set BINDIR in the environment to point somewhere
-else, e.g. `BINDIR="$HOME/.new_local/bin" make install` will put it in
-$HOME/.new_local/bin. Make sure you have that directory in your
-`PATH`, or use the absolute path when starting the script.
+Run `make install`; this installs the script into `~/bin` folder. Make sure you
+have that directory in your `PATH`, or use the absolute path when starting
+the script.
+
 
 ## Prerequisites
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]