aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 723d8cd3af4f5e80951a428c361a55f74a09c741 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PROG=stikman
PREFIX=/usr/local
BINDIR=${PREFIX}/bin
LICENSEDIR=${PREFIX}/share/licenses/stikman

doc:
	mkdir -p ${DESTDIR}${LICENSEDIR}
	chmod 644 LICENSE
	cp LICENSE ${DESTDIR}${LICENSEDIR}

install:
	chmod 755 ${PROG}
	cp ${PROG} ${PROG}.bak
	mkdir -p ${DESTDIR}${BINDIR}
	cp ${PROG}.bak ${DESTDIR}${BINDIR}/${PROG}
	rm ${PROG}.bak

uninstall:
	rm -f ${DESTDIR}${BINDIR}/${PROG}
	rm -rf ${DESTDIR}${LICENSEDIR}

.PHONY: install uninstall doc