summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7d61d55b66d05f849f16fdfedfba6c33be9513ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
PROG ?= wd
PREFIX ?= /usr
DESTDIR ?=
BINDIR ?= $(PREFIX)/bin

all: 
	@echo "$(PROG) is a shell script and doesn't need compilation. It can be simply executed."
	@echo
	@echo "To install it. Try \"make install\" instead."
	@echo

install:
	@install -vm0755 \
		"$(PROG)" \
		"$(PROG)-journal" \
		"$(PROG)-edit" \
		"$(DESTDIR)$(BINDIR)"
	@echo
	@echo "$(PROG) is installed succesfully"
	@echo

uninstall:
	@rm -vrf \
		"$(DESTDIR)$(BINDIR)/$(PROG)" \
		"$(DESTDIR)$(BINDIR)/$(PROG)-journal" \
		"$(DESTDIR)$(BINDIR)/$(PROG)-edit"

.PHONY: all install uninstall