|
| From: | Greg Chicares |
| Subject: | Re: have a problem mixing Make and java. |
| Date: | Thu, 23 Feb 2006 13:07:40 +0000 |
| User-agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
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'.
| [Prev in Thread] | Current Thread | [Next in Thread] |