about summary refs log tree commit diff stats
path: root/Makefile
blob: fe6ac4b98aa9c3002d4d63c31349dc54b0c1c1b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# SHITE
# by C. Duckworth <acdw@acdw.net>

PREFIX=/usr/local
NAME=shite

SCRIPT=$(PWD)/$(NAME)

help:
	@echo "SHITE: by C. Duckworth"
	@echo "Makefile targets:"
	@echo "install: install to $(DESTDIR)$(PREFIX)."
	@echo "link: symlink to $(DESTDIR)$(PREFIX)."
	@echo "uninstall: remove from $(DESTDIR)$(PREFIX)"

install: $(SCRIPT)
	install -D $< $(DESTDIR)$(PREFIX)/bin/$(NAME)

link: $(SCRIPT)
	ln -sf $< $(DESTDIR)$(PREFIX)/bin/$(NAME)

uninstall:
	-rm -f $< $(DESTDIR)$(PREFIX)/bin/$(NAME)