4 Apr 2004 10:25
make strangeness
Eyal Lebedinsky <eyal <at> eyal.emu.id.au>
2004-04-04 08:25:43 GMT
2004-04-04 08:25:43 GMT
I ended up with a makefile that contains something like this
(call it test.mak):
xxx xxx:
echo $(MAKE_VERSION)
echo -n " " ld -o xxx > make.crf
echo -n " " a.o >>make.crf
echo -n " " b.o >>make.crf
-rm xxx
touch xxx
Naturally, in my makfile the two 'xxx's are actually different
variables that ended up with the same value, and the final
touch was actually executing make.crf. When making I get:
$ rm xxx ; make -f test.mak
echo netbsd-20020909
netbsd-20020909
echo netbsd-20020909
netbsd-20020909
echo -n " " ld -o xxx > make.crf
echo -n " " ld -o xxx > make.crf
echo -n " " a.o >>make.crf
echo -n " " a.o >>make.crf
echo -n " " b.o >>make.crf
echo -n " " b.o >>make.crf
rm xxx
rm: xxx: No such file or directory
*** Error code 1 (ignored)
rm xxx
(Continue reading)
.
RSS Feed