blob: 91420d59f535de6a160874aa2707e1fb2d3362ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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)" \
"$(DESTDIR)$(PREFIX)/bin"
@echo
@echo "$(PROG) is installed succesfully"
@echo
uninstall:
@rm -vrf \
"$(DESTDIR)$(PREFIX)/bin/$(PROG)"
.PHONY: all install uninstall
|