1993-07-07 23:07:02 +00:00
|
|
|
PROG= manpath
|
|
|
|
SRCS= manpath.c
|
1997-04-10 16:14:09 +00:00
|
|
|
MAN1= manpath.1
|
1993-07-08 21:57:48 +00:00
|
|
|
|
1998-03-07 09:46:17 +00:00
|
|
|
DPADD= ${LIBMAN}
|
|
|
|
LDADD= ${LIBMAN}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 20:48:37 +00:00
|
|
|
CFLAGS+= -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS
|
1996-06-24 04:26:21 +00:00
|
|
|
CFLAGS+= -DALT_SYSTEMS -I${.CURDIR}/../lib -I${.OBJDIR}/../lib
|
1993-07-21 21:37:54 +00:00
|
|
|
CLEANFILES+= ${MAN1}
|
1996-01-24 00:18:29 +00:00
|
|
|
MANDEPEND+= ${MAN1}
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1993-07-21 17:18:04 +00:00
|
|
|
${MAN1}: ${.CURDIR}/manpath.man
|
1996-02-25 20:25:05 +00:00
|
|
|
@${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \
|
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:
|
1999-05-23 02:11:41 +00:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
|
1999-05-22 19:38:04 +00:00
|
|
|
${.CURDIR}/manpath.config ${DESTDIR}${manpath_config_file}.sample
|
1993-07-16 06:46:42 +00:00
|
|
|
|
1993-07-07 23:07:02 +00:00
|
|
|
.include <bsd.prog.mk>
|