help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The problem of the chained implicit rule?


From: Peng Yu
Subject: The problem of the chained implicit rule?
Date: Tue, 24 Nov 2009 00:26:35 -0600

I have the following makefile. I thought that 'a.y' and 'b.y' should
be printed. But it is not. What is the problem?

$ ls
a.x   b.x  Makefile
$ cat Makefile
.PHONY: all

Y_FILES=$(patsubst %x,%y,$(wildcard *.x))

.PHONY: $(Y_FILES)

all: $(Y_FILES)

%.y: %.x
        echo $@
$ make
make: Nothing to be done for `all'.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]