summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 7d61d55..1a866ee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,6 @@
PROG ?= wd
-PREFIX ?= /usr
+PREFIX ?= /usr/local
DESTDIR ?=
-BINDIR ?= $(PREFIX)/bin
all:
@echo "$(PROG) is a shell script and doesn't need compilation. It can be simply executed."
@@ -14,15 +13,15 @@ install:
"$(PROG)" \
"$(PROG)-journal" \
"$(PROG)-edit" \
- "$(DESTDIR)$(BINDIR)"
+ "$(DESTDIR)$(PREFIX)/bin"
@echo
@echo "$(PROG) is installed succesfully"
@echo
uninstall:
@rm -vrf \
- "$(DESTDIR)$(BINDIR)/$(PROG)" \
- "$(DESTDIR)$(BINDIR)/$(PROG)-journal" \
- "$(DESTDIR)$(BINDIR)/$(PROG)-edit"
+ "$(DESTDIR)$(PREFIX)/bin/$(PROG)" \
+ "$(DESTDIR)$(PREFIX)/bin/$(PROG)-journal" \
+ "$(DESTDIR)$(PREFIX)/bin/$(PROG)-edit"
.PHONY: all install uninstall