Hi,
This is a make file I wrote, and what happens when I use it:
all: temp/t1 temp/t2
echo Ok
temp/t%: t%
mkdir -p temp
ls > $@
t1:
ls > t1
ls > t2
.PHONY: clean
clean:
rm t1
rm t2
rm -R temp
When I run 'make', I get the output:
ls > t1
ls > t2
mkdir -p temp
ls > temp/t1
make: *** No rule to make target `temp/t2', needed by `all'. Stop.
My question is why do I get this error message? I expected the rule
temp/t%: t%
to be used to make temp/t2.
Thanks,
Rodrigo
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make