-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
43 lines (32 loc) · 893 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
38
39
40
41
42
43
# $OpenBSD$
MAN= sysclean.8
SCRIPT= sysclean.pl
BINDIR?= /usr/local/sbin
MANDIR?= /usr/local/man/man
realinstall:
${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/${SCRIPT} ${DESTDIR}${BINDIR}/sysclean
README.md: sysclean.8
mandoc -T markdown sysclean.8 >$@
regress: run-regress-perl-syntax \
run-regress-man-lint \
run-regress-man-readme \
run-regress-man-date
run-regress-perl-syntax:
@echo TEST: perl syntax
@perl -c sysclean.pl
run-regress-man-lint:
@echo TEST: man page lint
@mandoc -T lint -W style sysclean.8
run-regress-man-readme:
@echo TEST: README.md sync
@mandoc -T markdown sysclean.8 | diff -q README.md -
run-regress-man-date:
@echo TEST: man page date
@if [ -d .git ]; then \
grep -qF -- \
"$$(date -r $$(git log -1 --format="%ct" sysclean.8) \
+'.Dd %B %d, %Y')" \
sysclean.8 ; \
fi
.include <bsd.prog.mk>