SERVAPI=/usr/share/tomcat7/lib/servlet-api.jar all: javac -classpath $(SERVAPI) -d classes -encoding utf8 src/Servlet1.java clean: rm classes/*.class install: cp classes/Servlet1.class /var/lib/tomcat7/webapps/elso/WEB-INF/classes/