1993-07-07 23:07:02 +00:00
|
|
|
PROG= manpath
|
|
|
|
MAN1= manpath.1
|
|
|
|
SRCS= manpath.c
|
1993-07-08 21:57:48 +00:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../lib/obj)
|
|
|
|
LDADD= -L${.CURDIR}/../lib/obj -lman
|
|
|
|
.else
|
|
|
|
LDADD= -L${.CURDIR}/../lib/ -lman
|
|
|
|
.endif
|
1993-07-07 23:07:02 +00:00
|
|
|
|
|
|
|
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>
|