[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why does make behave like this?
From: |
Rodrigo de Salvo Braz |
Subject: |
Why does make behave like this? |
Date: |
Sat, 25 Mar 2006 21:05:47 -0600 (CST) |
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
- Why does make behave like this?,
Rodrigo de Salvo Braz <=