Hello Gurus: I need help creating a makefile for my servlets. My problem right now is when I compile my code into a different directory my makefile always compiles rather than compiling only when my source code has changed. My directory structure: root/../src/servlets/ root/../lib/servlets/ Please send me a link to resources or some sample code. Thanks. Current Code: javaflags = "-g"; #javaflags = "-g" "-d" ; "%.class": "%.java"; { exec "javac" javaflags "-classpath" "e:/opt/ishipper/fedex/dev/lib;e:/opt/ishipper/fedex/dev/lib/servlets;e:/opt/weblogic/4.5.1/lib/weblogic451sp8boot.jar;e:/opt/ishipper/fedex/dev/lib/servlets;e:/opt/weblogic/4.5.1/lib/weblogic451sp8.jar;e:/opt/weblogic/4.5.1/classes/boot;e:/opt/ishipper/fedex/dev/lib;e:/opt/ishipper/fedex/dev/servlets;e:/opt/jdk/jdk1.2.1/lib/classes.zip;e:/opt/jdk/jdk1.2.1/lib/activation.jar;e:/opt/jdk/jdk1.2.1/lib/mail.jar;e:/opt/jdk/jce1.2/lib/jce1_2-do.jar;e:/opt/jdbc_drivers/oracle/lib;e:/opt/weblogic/4.5.1/license;e:/opt/weblogic/4.5.1/lib/weblogic.jar;e:/opt/weblogic/4.5.1/lib/weblogicaux.jar;e:/opt/weblogic/4.5.1/classes" <; #exec "javac" javaflags srcPath "-classpath" "e:/opt/ishipper/fedex/dev/lib;e:/opt/ishipper/fedex/dev/lib/servlets;e:/opt/weblogic/4.5.1/lib/weblogic451sp8boot.jar;e:/opt/ishipper/fedex/dev/lib/servlets;e:/opt/weblogic/4.5.1/lib/weblogic451sp8.jar;e:/opt/weblogic/4.5.1/classes/boot;e:/opt/ishipper/fedex/dev/lib;e:/opt/ishipper/fedex/dev/servlets;e:/opt/jdk/jdk1.2.1/lib/classes.zip;e:/opt/jdk/jdk1.2.1/lib/activation.jar;e:/opt/jdk/jdk1.2.1/lib/mail.jar;e:/opt/jdk/jce1.2/lib/jce1_2-do.jar;e:/opt/jdbc_drivers/oracle/lib;e:/opt/weblogic/4.5.1/license;e:/opt/weblogic/4.5.1/lib/weblogic.jar;e:/opt/weblogic/4.5.1/lib/weblogicaux.jar;e:/opt/weblogic/4.5.1/classes" <; } srcs = (glob "*.java"); classes = (patsubst ".java", ".class", srcs); "all": classes; __________________________________________________ Do You Yahoo!? Yahoo! Calendar - Get organized for the holidays! http://calendar.yahoo.com/ =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets