.if exists
(${.CURDIR
}/..
/lib
/obj
)
LDADD
= -L
${.CURDIR
}/..
/lib
/obj
-lman
LDADD
= -L
${.CURDIR
}/..
/lib
/ -lman
.if exists
(${.CURDIR
}/obj
)
MAN1
=${.CURDIR
}/obj
/manpath
.1
MAN1
=${.CURDIR
}/manpath
.1
CFLAGS
+= -I
${.CURDIR
}/..
/lib
-DMAIN
-DSTDC_HEADERS
-DPOSIX
-DHAS_TROFF
-DDO_UNCOMPRESS
-DALT_SYSTEMS
${MAN1}: ${.CURDIR
}/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},' \
${.CURDIR
}/manpath.man
> ${MAN1}
install -c
-o bin
-g bin
-m
555 ${.CURDIR
}/manpath.config
${DESTDIR}${manpath_config_file}