-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (34 loc) · 964 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
##########################################################
# build system -- mk-configure
FILES = pipestatus
FILESDIR_pipestatus = ${BINDIR}
DOCFILES ?= NEWS README
FILES += ${DOCFILES}
SCRIPTS += pipestatus_demo
FILESDIR = ${DATADIR}/doc/pipestatus
SCRIPTSDIR= ${FILESDIR}
##########################################################
SH ?= /bin/sh
.PHONY: test
test:
@printf " ---------------\nSH=%s\n" ${SH}; \
set -e; cd ${.CURDIR}; ${SH} ./selftest; echo succeeded
NAMES ?= bash dash zsh mksh oksh pdksh ksh sh
DIRS ?= /usr/pkg/bin /usr/local/bin /usr/xpg4/bin /usr/bin /bin
.for s in ${NAMES}
.for d in ${DIRS}
SHELLS += ${d}/${s}
.endfor
.endfor
.PHONY: test_all
test_all:
@set -e; cd ${.CURDIR}; \
for sh in ${SHELLS}; do \
if test -x $$sh; then \
printf '%s... ' "$$sh"; \
$$sh ./selftest; \
echo 'succeeded'; \
fi; \
done
##########################################################
.include <mkc.files.mk>