# /usr/src/man/man7/Makefile

include /usr/src/COPYRIGHTS

MDIR=	/usr/man/man7
SRCS=	ascii.7$Z environ.7$Z eqnchar.7$Z hier.7$Z hostname.7$Z intro.7$Z \
	mailaddr.7$Z man.7$Z me.7$Z ms.7$Z term.7$Z
LINKS=	miscellaneous.7$Z

all: fix$Z

fix.Z:
	  find . -type f ! -name Makefile ! -name '*.Z' -exec compress {} \;

fix:
	  find . -type f -name '*.Z' -exec uncompress {} \;

clean: FRC

install: FRC
	-[ -d ${DESTDIR}${MDIR} ] || mkdir ${DESTDIR}${MDIR}
	-chmod 755 ${DESTDIR}${MDIR}
	-chown root.bin ${DESTDIR}${MDIR}
	cd ${DESTDIR}${MDIR}; rm -f ${SRCS} ${LINKS}
	install -c -o bin -g bin -m 444 ${SRCS} ${DESTDIR}${MDIR}
	ln -s intro.7$Z ${DESTDIR}${MDIR}/miscellaneous.7$Z

FRC:
