# Makefile for "greg" -- W. M. McKeeman -- Wang Institute -- 1985
# Assuming you have unshared all of this,
# make greg
# will compile greg and
# make man
# will produce the manual page.
# make test
# will compare greg's output with some results prepared by the author

greg:	gregorian.c
	cc -o greg gregorian.c

test:	greg test.exe test.author
	test.exe > test.results
	diff test.results test.author
	echo "all tests passed"

man:	gregorian.1
	nroff -man gregorian.1 > gregorian.man

laser:	gregorian.1
	iroff -man gregorian.1

fornet:	gregorian.1 makefile gregorian.c test.exe
	test.exe > test.author
	@shar -a gregorian.1 makefile gregorian.c test.exe test.author > fornet

