summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5a89949d8d0736000620605fcfd25148ded8a8ec (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
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" \
		"$(DESTDIR)$(BINDIR)"
	@echo
	@echo "$(PROG) is installed succesfully"
	@echo

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

.PHONY: all install uninstall