freebsd-dev/gnu/usr.bin/man/manpath/Makefile

25 lines
697 B
Makefile
Raw Normal View History

1993-07-07 23:07:02 +00:00
PROG= manpath
SRCS= manpath.c
MAN1= manpath.1
DPADD= ${LIBMAN}
LDADD= ${LIBMAN}
1993-07-07 23:07:02 +00:00
CFLAGS+= -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS
CFLAGS+= -DALT_SYSTEMS -I${.CURDIR}/../lib -I${.OBJDIR}/../lib
CLEANFILES+= ${MAN1}
1996-01-24 00:18:29 +00:00
MANDEPEND+= ${MAN1}
1993-07-07 23:07:02 +00:00
${MAN1}: ${.CURDIR}/manpath.man
@${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},' \
${.CURDIR}/manpath.man > ${MAN1}
1993-07-07 23:07:02 +00:00
afterinstall:
${INSTALL} -c -o bin -g bin -m 644 ${.CURDIR}/manpath.config \
${DESTDIR}${manpath_config_file}.sample
1993-07-07 23:07:02 +00:00
.include <bsd.prog.mk>