forked from Freaky/run-one
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 756 Bytes
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
PREFIX?= /usr/local
BINDIR?= ${PREFIX}/bin
MANDIR?= ${PREFIX}/man/man
RM?= /bin/rm -i
SHELLCHECK?= shellcheck
SCRIPTS= run-one
MAN= run-one.1
LINKS= ${BINDIR}/run-one ${BINDIR}/run-this-one \
${BINDIR}/run-one ${BINDIR}/run-one-constantly \
${BINDIR}/run-one ${BINDIR}/run-one-until-success \
${BINDIR}/run-one ${BINDIR}/run-one-until-failure
MLINKS= run-one.1 run-this-one.1 \
run-one.1 run-one-constantly.1 \
run-one.1 run-one-until-failure.1 \
run-one.1 run-one-until-success.1
uninstall:
@${RM} ${BINDIR}/${SCRIPTS}
.for ro bin in ${LINKS}
@${RM} ${bin}
.endfor
@${RM} ${MANDIR}1/${MAN}.gz
.for ro man in ${MLINKS}
@${RM} ${MANDIR}1/${man}.gz
.endfor
test:
${SHELLCHECK} ${SCRIPTS}
.include <bsd.prog.mk>