JAVAPATH=/home/zeil/src/jdk1.1/bin CLASSPATH=.:/home/zeil/src/jdk1.1/lib/classes.zip JOPTIONS= USER=$(HOME) .SUFFIXES: .SUFFIXES: .class .java .java.class: export CLASSPATH; CLASSPATH=$(CLASSPATH); $(JAVAPATH)/javac -nowarn $(JOPTIONS) $*.java # # As you define new classes, add them to the following list. # It may not be absolutely necessary, but it will help guarantee that # necessary recompilation gets done. # CLASSES= Asst7.class all: $(CLASSES) run: all export CLASSPATH; CLASSPATH=$(CLASSPATH); $(JAVAPATH)/appletviewer asst7.html # export CLASSPATH; CLASSPATH=$(CLASSPATH); $(JAVAPATH)/java asst7 view: $(USER)/public_html/Asst7 all cp -f *.class $(USER)/public_html/Asst7 chmod o+r $(USER)/public_html/Asst7/*.class cp -f asst7.html $(USER)/public_html/Asst7 chmod o+r $(USER)/public_html/Asst7/asst7.html $(USER)/public_html/Asst7: $(USER)/public_html mkdir $(USER)/public_html/Asst7 chmod o+rx $(USER)/public_html/Asst7 $(USER)/public_html: mkdir $(USER)/public_html chmod o+rx $(USER)/public_html clean: -rm -f *.class