summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1a866ee24f533d6282b1261871b3e388b051448b (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
PROG ?= wd
PREFIX ?= /usr/local
DESTDIR ?=

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)$(PREFIX)/bin"
	@echo
	@echo "$(PROG) is installed succesfully"
	@echo

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

.PHONY: all install uninstall