#
#	Makefile for ChinHeng's masters report
#
#	We have to use ditroff to use grn.
#

PSFLAGS=-Tpsc
IMAGEN=	lw
PS=	lw
GRN=	/usr/local/grn
grn=	$(GRN) -P$(IMAGEN)
TROFF=	/usr/local/ditroff
troff=	$(TROFF) -P$(IMAGEN)

SRCS=	Report.grn

report:
	@$(grn) $(SRCS) | \
	$(troff) -me -t | \
	psdit > Report.$(IMAGEN)

print: 
	@lpr -P$(PS) Report.$(IMAGEN)

psreport:
	cat $(SRCS) | \
	$(grn) $(PSFLAGS) | \
	$(troff) $(PSFLAGS) -me -t | \
	psdit > Report.$(PS)

psprint: 
	@lpr -P$(PS) Report.$(PS)

clean:
	@rm -f Report.$(IMAGEN) Report.$(PS)
