aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-09-13 09:06:09 -0300
committerEuAndreh <eu@euandre.org>2021-09-13 13:12:19 -0300
commit8f9ee7253eb7666af44817b724f1b17bc4ab79e1 (patch)
tree82d6ef961ec0070af6092302008ab0fe87cbebf9
parentMakefile: Put "install"/"uninstall" at the end (diff)
downloadgit-permalink-8f9ee7253eb7666af44817b724f1b17bc4ab79e1.tar.gz
git-permalink-8f9ee7253eb7666af44817b724f1b17bc4ab79e1.tar.xz
Makefile: Remove quotes around $(DESTDIR) and $(PREFIX)
This is because the default paths don't need quotes, and if the user provides a path with spaces, they can provide the quotes.
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c949bd1..5880e6e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
.POSIX:
PREFIX = /usr/local
-MANPREFIX = '$(PREFIX)/share/man'
+MANPREFIX = $(PREFIX)/share/man
DATE = 2021-07-16
VERSION = 0.2.3
NAME = git-permalink
@@ -35,13 +35,13 @@ clean:
src/git-permalink tests/destdirs/ tests/prefix/ tests/remotes/
install: all
- mkdir -p '$(DESTDIR)$(PREFIX)/bin'
- cp src/git-permalink '$(DESTDIR)$(PREFIX)/bin'
- sh doc/manpages.sh -ip '$(DESTDIR)$(MANPREFIX)' $(manpages)
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ cp src/git-permalink $(DESTDIR)$(PREFIX)/bin
+ sh doc/manpages.sh -ip $(DESTDIR)$(MANPREFIX) $(manpages)
uninstall:
- rm -f '$(DESTDIR)$(PREFIX)/bin/git-permalink'
- sh doc/manpages.sh -up '$(DESTDIR)$(MANPREFIX)' $(manpages)
+ rm -f $(DESTDIR)$(PREFIX)/bin/git-permalink
+ sh doc/manpages.sh -up $(DESTDIR)$(MANPREFIX) $(manpages)
#