On Tue, 2014-01-21 at 18:23 +0000, Doug Konrad wrote: > We are using the advanced VPATH method described in > http://make.mad-scientist.net/multi-arch.html#advanced. > > The makefile line: > > MAKETARGET = $(MAKE) --no-print-directory -C $@ -f $(CURDIR)/Makefile \ > SRCDIR=$(CURDIR) $(MAKECMDGOALS) > > has got me puzzled. When I use -C $@, the Makefile is found in CURDIR. > However, if I use -C /.../some/other/path, Make doesn't look in > CURDIR, it looks in the directory specified with -C. Is this correct?
I'm not sure I understand the question. Given the above line make always loads $(CURDIR)/Makefile, because of the "-f $(CURDIR)/Makefile" command line option. Because "-f" is given make doesn't look for the default Makefile in the working directory. _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
