#	$Id$
#

PROG=	man
SRCS=	man.c manpath.c glob.c
MAN1=   man.1
BINOWN= man
BINMODE=4555
.if !defined(NOFSCHG)
INSTALLFLAGS+= -fschg
.endif

CFLAGS+= -I${LIBDESTDIR}
DPADD=	${LIBMAN}
LDADD=	${LIBMAN}

CFLAGS+= -I${.CURDIR}/../lib -DSTDC_HEADERS -DPOSIX -DHAS_TROFF
CFLAGS+= -DDO_COMPRESS -DALT_SYSTEMS -DSETREUID -DCATMODE=0644
CLEANFILES+=	${MAN1}
MANDEPEND+=	${MAN1}

.PATH:	${.CURDIR}/../manpath

${MAN1}: ${.CURDIR}/man.man
	@${ECHO} echo Making ${.TARGET:T} from ${.ALLSRC:T}; \
	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},' \
	    -e 's,%compress%,${compress},' \
	${.CURDIR}/man.man > ${MAN1}

.include <bsd.prog.mk>

#	$Id: Makefile,v 1.25 1999/07/05 02:46:20 hoek Exp $
#

PROG=	man
SRCS=	man.c manpath.c glob.c
MAN1=   man.1
BINOWN= man
BINMODE=4555
INSTALLFLAGS+= -fschg

CFLAGS+= -I${LIBDESTDIR}
DPADD=	${LIBMAN}
LDADD=	${LIBMAN}

CFLAGS+= -I${.CURDIR}/../lib -DSTDC_HEADERS -DPOSIX -DHAS_TROFF
CFLAGS+= -DDO_COMPRESS -DALT_SYSTEMS -DSETREUID -DCATMODE=0644
CLEANFILES+=	${MAN1}
MANDEPEND+=	${MAN1}

.PATH:	${.CURDIR}/../manpath

${MAN1}: ${.CURDIR}/man.man
	@${ECHO} echo Making ${.TARGET:T} from ${.ALLSRC:T}; \
	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},' \
	    -e 's,%compress%,${compress},' \
	${.CURDIR}/man.man > ${MAN1}

.include <bsd.prog.mk>

Remove explicit testing of the NOFSCHG variable. Its functionality (in this file) is now superceeded by INSTALLFLAGS_EDIT in bsd.{prog,kmod,lib}.mk.
Remove explicit testing of the NOFSCHG variable.  Its functionality (in this
file) is now superceeded by INSTALLFLAGS_EDIT in bsd.{prog,kmod,lib}.mk.
