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-21 20:48:37 +00:00
|
|
|
CFLAGS+= -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS
|
|
|
|
CFLAGS+= -DALT_SYSTEMS -I${.CURDIR}/../lib -I${.CURDIR}/../lib/obj
|
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-06 23:48:03 +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>
|