Hi, I have following makefile:
VPATH=./. #VPATH=. all: dir/lib.a dir: +mkdir dir dir/%.o: %.cpp dir +touch $@ dir/lib.a: dir/a.o dir/b.o +touch $@ clean: rm -rf dir Problem is that if VPATH=./., I am getting following error: rm -rf dir gkupava@apinydev02 stdalonetest 5.8 $ gmake -f test.mk mkdir dir touch dir/a.o gmake: *** No rule to make target `dir/b.o', needed by `dir/lib.a'. Stop. gkupava@apinydev02 stdalonetest 5.8 $ gmake -f test.mk touch dir/b.o touch dir/lib.a if I set VPATH to . or unset it, all is fine. Is this a bug? How to explain this? Tested with gmake 3.82 and 4.1 on linux/amd64/RHEL5. Thanks in advance, Gennady _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make