# /usr/src/man/man5/Makefile

include /usr/src/COPYRIGHTS

MDIR=	/usr/man/man5
SRCS=	L-devices.5$Z L-dialcodes.5$Z L.aliases.5$Z L.cmds.5$Z L.sys.5$Z \
	USERFILE.5$Z a.out.5$Z acct.5$Z aliases.5$Z ar.5$Z core.5$Z dbx.5$Z \
	dir.5$Z disklabel.5$Z disktab.5$Z dm.config.5$Z dump.5$Z error.5$Z \
	fs.5$Z fstab.5$Z gettytab.5$Z group.5$Z hosts.5$Z map3270.5$Z \
	mtab.5$Z networks.5$Z passwd.5$Z phones.5$Z plot.5$Z printcap.5$Z \
	protocols.5$Z remote.5$Z resolver.5$Z services.5$Z shells.5$Z \
	stab.5$Z tar.5$Z termcap.5$Z tp.5$Z ttys.5$Z types.5$Z tzfile.5$Z \
	utmp.5$Z uuencode.5$Z vfont.5$Z vgrindefs.5$Z rcsfile.5$Z \
	cpio_format.5$Z
LINKS=	inode.5$Z dumpdates.5$Z wtmp.5$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 fs.5$Z ${DESTDIR}${MDIR}/inode.5$Z
	ln -s dump.5$Z ${DESTDIR}${MDIR}/dumpdates.5$Z
	ln -s utmp.5$Z ${DESTDIR}${MDIR}/wtmp.5$Z

FRC:
