Simple Java build one class example
Targets
all
COOKBOOK FOR JAVA
We let PBS know that .java files are considered source code.
Rules
all
We declare a rule to match the all target. This is a conveniance rule as we could build HelloWorld.class directly from the command line.
classes
Rule classes matches any taget that ends with .class and declares a dependency to a matching .java file.
The javac command is passed the path of the file to build and the .java file.