diff options
-rw-r--r-- | Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 |