On 2006-2-21 15:57 UTC, richard t wrote:
> 
> x.class y.class z.class : x.java y.java z.java
>    javac -g $< 
> 
> I guess I understood that the "$<" would match each 
> source file that needed to be compiled? 

One useful way to explore matters like this is to substitute
'echo' for the real commands:

.PHONY: x.class y.class z.class
x.class y.class z.class: x.java y.java z.java
        @echo "target is $@"
        @echo "  dollar-less is $<"
        @echo "  dollar-hat is $^"
$touch x.java y.java z.java
$/tmp/make-3.81beta4/make -f automatic_variables.make
target is x.class
  dollar-less is x.java
  dollar-hat is x.java y.java z.java
target is y.class
  dollar-less is x.java
  dollar-hat is x.java y.java z.java

Another way is to use 'make --dry-run'.


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to