1 # $OpenBSD: Makefile,v 1.9 2016/05/26 21:24:16 millert Exp $
5 LINKS
= ${BINDIR}/which
${BINDIR}/whereis
6 COPTS
+= -I
${.CURDIR
}/include
9 @echo
"Checking path expansion in whereis.1"; \
10 stdpath
=`printf '#include <paths.h>\n_PATH_STDPATH\n' | \
11 ${CC} -E -P ${CPPFLAGS} - | \
12 sed -n 's/^[ ]*"\(.*\)".*/.D1 \1/p'` ; \
13 fgrep
-xq
"$$stdpath" ${.CURDIR
}/whereis
.1 && { touch
$@
; exit
0; }; \
14 echo
"Update the expansion of _PATH_STDPATH in ${.CURDIR}/whereis.1"; \
17 all: check_path_in_man
18 CLEANFILES
= check_path_in_man
20 .
include <bsd.prog.mk
>