Annotation of src/usr.bin/which/Makefile, Revision 1.7
1.6 guenther 1: # $OpenBSD: Makefile,v 1.5 1997/04/08 02:44:05 millert Exp $
2:
1.4 millert 3: PROG= which
1.7 ! guenther 4: MAN= which.1 whereis.1
1.5 millert 5: LINKS= ${BINDIR}/which ${BINDIR}/whereis
1.6 guenther 6:
1.7 ! guenther 7: check_path_in_man:
1.6 guenther 8: stdpath=`printf '#include <paths.h>\n_PATH_STDPATH\n' | \
1.7 ! guenther 9: ${CPP} ${CPPFLAGS} - | \
! 10: sed -n 's/^[ ]*"\(.*\)".*/.Pa \1 ./p'` ; \
! 11: fgrep -xq "$$stdpath" ${.CURDIR}/whereis.1 && { touch $@; exit 0; }; \
! 12: echo "Update the expansion of _PATH_STDPATH in ${.CURDIR}/whereis.1"; \
! 13: exit 1
1.6 guenther 14:
1.7 ! guenther 15: all: check_path_in_man
! 16: CLEANFILES = check_path_in_man
1.1 deraadt 17:
18: .include <bsd.prog.mk>