# Makefile for installation of adapt # configuration: # make sure ADAPTDIR matches the directory on the second line of the # adapt script: unshift(@INC, ); ADAPTDIR= /b/poe/lib/adapt BINDIR = /b/poe/bin MANDIR = /b/poe/man PERL5 = /usr/local/perl5.002/bin/perl MODULES = ClassParser.pm Codegen.pm GraphColoring.pm ProgParser.pm all: ALWAYS @echo "You need to have Perl 5.002 or later installed to use this." @echo "You must also edit the top line of the 'adapt' script to give" @echo "the correct path of your Perl 5 interpreter. And remember" @echo "to set the correct lib path that matches ADAPTDIR in" @echo "the Makefile." @echo @echo 'Then do a "make build".' build: ALWAYS pod2man --center="User Commands" adapt > adapt.1 pod2html adapt @echo 'You may now choose to do a "make install".' test: ALWAYS @echo This won't work until after "make install" adapt -og expr.class expr.prog $(PERL5) expr.pm adapt -og graph.class graph.prog $(PERL5) graph.pm install: ALWAYS -mkdir $(ADAPTDIR) chmod a+rx $(ADAPTDIR) cp $(MODULES) $(ADAPTDIR) cp adapt $(BINDIR) chmod a+rx $(BINDIR)/adapt cp adapt.1 $(MANDIR)/man1 clean: ALWAYS -rm -f adapt.1 adapt.html expr.pm graph.pm ALWAYS: