1993-07-07 23:07:02 +00:00
|
|
|
PROG= manpath
|
|
|
|
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
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
.if exists(${.CURDIR}/obj)
|
|
|
|
MAN1=${.CURDIR}/obj/manpath.1
|
|
|
|
.else
|
|
|
|
MAN1=${.CURDIR}/manpath.1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DPADD+= ${MAN1}
|
1993-07-07 23:07:02 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../lib -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS -DALT_SYSTEMS
|
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
${MAN1}: ${.CURDIR}/manpath.man
|
1993-07-07 23:07:02 +00:00
|
|
|
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},' \
|
1993-07-21 17:18:04 +00:00
|
|
|
${.CURDIR}/manpath.man > ${MAN1}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-16 06:46:42 +00:00
|
|
|
afterinstall:
|
1993-07-20 02:13:11 +00:00
|
|
|
install -c -o bin -g bin -m 555 ${.CURDIR}/manpath.config ${DESTDIR}${manpath_config_file}
|
1993-07-16 06:46:42 +00:00
|
|
|
|
1993-07-07 23:07:02 +00:00
|
|
|
.include <bsd.prog.mk>
|