CFLAGS=-g CFLAGS=-g -fullwarn #LDFLAGS=-lm all: text # word-cnt text: text.o $(CC) $(CFLAGS) -o $@ $? $(LDFLAGS) text.o: text.c word-cnt: word-cnt.o $(CC) $(CFLAGS) -o $@ $? $(LDFLAGS) word-cnt.o: word-cnt.c print: #tgrind -h "Michael J. Gourlay" text.c #dvips -o text.c.ps text.c.dvi tgrind -h "Michael J. Gourlay" word-cnt.c dvips -o word-cnt.c.ps word-cnt.c.dvi output: all #tests > out #pr -l48 -f -h " --- text output --- Michael J. Gourlay --- " out > out.pr #lp -olandscape out.pr # #tests > out #pr -l48 -f -h " --- text update output --- Michael J. Gourlay --- " out > out.pr #lp -olandscape out.pr # #word-cnt-tests > word-cnt-out #pr -f -h " --- word-cnt output --- Michael J. Gourlay --- " word-cnt-out > word-cnt-out.pr #lp -olandscape word-cnt-out.pr # # # # # Requested additional output -- 28nov96 # text t3 < p3 > out-additional @echo @echo @echo "Now edit 'out-additional' and manually append to 'out3'" @echo "Then re-run 'make output'" @echo @echo # ## I did some manual editting of the out-additional file to ## add comments, such as the command line, and the raw input ## files. The final output was then called "out3". pr -f -h " --- additional output --- Michael J. Gourlay --- " out3 > out3.pr back: if [ -d backup ]; then echo "'backup' already exists" ; exit 1 ; fi if [ ! -d backup ]; then mkdir backup ; fi -cp -p *.[ch] Makefile tests backup @echo @echo "NOW MOVE THE BACKUP DIRECTORY:" @echo " mv backup `date +%d%b%y | tr '[A-Z]' '[a-z]'`" @echo clean: -rm *.o -rm core -rm *.aux -rm *.log veryclean: clean -rm text -rm word-cnt -rm mon.out -rm out -rm word-cnt-out -rm *.pr -rm *.tex -rm *.ps -rm *.dvi