[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is -C @ magical?

From: Paul Smith
Subject: Re: Is -C @ magical?
Date: Tue, 21 Jan 2014 13:31:45 -0500

On Tue, 2014-01-21 at 18:23 +0000, Doug Konrad wrote:
> We are using the advanced VPATH method described in 
> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]