# Makefile for rot.c
#
# Edit this to your standards:
CFLAGS= -O
BINDIR=/usr/local
MANDIR=/usr/man/man1
# If you have preformatted manuals, remove the comment character
# in the install section
CATMANDIR=/usr/man/cat1
#
rot: rot.c
	cc $(CFLAGS) rot.c -o rot
rot.cat: rot.man
	tbl rot.man | nroff -man | col > rot.cat

install: rot rot.man rot.cat
	chmod 644 rot.man rot.cat
	mv rot.man $(MANDIR)/rot.1
#	mv rot.cat $(CATMANDIR)/rot.1
	chmod 711 rot
	mv rot $(BINDIR)
