1993-07-07 23:07:02 +00:00
|
|
|
PROG= manpath
|
|
|
|
SRCS= manpath.c
|
1993-07-08 21:57:48 +00:00
|
|
|
|
1996-06-24 04:26:21 +00:00
|
|
|
.if exists(${.OBJDIR}/../lib)
|
1996-09-05 17:16:10 +00:00
|
|
|
LIBDESTDIR= ${.OBJDIR}/../lib
|
1993-07-08 21:57:48 +00:00
|
|
|
.else
|
1996-09-05 17:16:10 +00:00
|
|
|
LIBDESTDIR= ${.CURDIR}/../lib
|
1993-07-08 21:57:48 +00:00
|
|
|
.endif
|
1996-09-05 17:16:10 +00:00
|
|
|
DPADD= ${LIBDESTDIR}/libman.a
|
|
|
|
LDADD= -L${LIBDESTDIR} -lman
|
1993-07-07 23:07:02 +00:00
|
|
|
|
1996-06-24 04:26:21 +00:00
|
|
|
.if exists(${.OBJDIR})
|
|
|
|
MAN1=${.OBJDIR}/manpath.1
|
1993-07-21 17:18:04 +00:00
|
|
|
.else
|
|
|
|
MAN1=${.CURDIR}/manpath.1
|
|
|
|
.endif
|
|
|
|
|
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:
|
1995-07-25 00:37:58 +00:00
|
|
|
${INSTALL} -c -o bin -g bin -m 644 ${.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>
|