freebsd-dev/gnu/usr.bin/man/manpath/Makefile

20 lines
520 B
Makefile

PROG= manpath
MAN1= manpath.1
SRCS= manpath.c
.if exists(${.CURDIR}/../lib/obj)
LDADD= -L${.CURDIR}/../lib/obj -lman
.else
LDADD= -L${.CURDIR}/../lib/ -lman
.endif
CFLAGS+= -I${.CURDIR}/../lib -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS -DALT_SYSTEMS
manpath.1: manpath.man
sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
-e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
-e 's,%manpath_config_file%,${manpath_config_file},' \
manpath.man > manpath.1
.include <bsd.prog.mk>