freebsd-dev/gnu/usr.bin/man/manpath/Makefile
Jordan K. Hubbard 61bd7eb21b Lots of stuff is now configured in Makefile.inc, path to `less' no longer
absolute, less uses "fall off end" flag by default, manpath.config now
properly installed.  Happy now, Rod? :-)
1993-07-16 06:46:42 +00:00

23 lines
617 B
Makefile

PROG= manpath
MAN1= manpath.1
SRCS= manpath.c
.if exists(${.CURDIR}/../lib/obj)
LDADD= -L${.CURDIR}/../lib/obj -lman
.else
LDADD= -L${.CURDIR}/../lib/ -lman
.endif
CFLAGS+= -I${.CURDIR}/../lib -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS -DALT_SYSTEMS
manpath.1: manpath.man
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},' \
manpath.man > manpath.1
afterinstall:
install -c -o bin -g bin -m 555 ${.CURDIR}/manpath.config ${manpath_config_file}
.include <bsd.prog.mk>