Re: '$(MAKE) target' may not work if the top-level Makefile has an uncommon name

Ralf Wildenhues <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization Department of Numerical Simulation, University of Bonn
Message-ID <[email protected]>
Hello Daniel,

* Daniel Leidert wrote on Tue, Mar 06, 2007 at 06:53:53AM CET:
> 
> /----- notCalledMakefile -----
> # a Makefile, that isn't called Makefile
> 
> include foo.make
> 
> test-foo: foo
> 
> bar:
> 	$(MAKE) foo

Make that
        $(MAKE) -f notCalledMakefile foo

or, if possible, just let bar depend on foo if you don't need to
reinvoke make.

> \--------------------
> 
> /----- foo.make -----
> # foo.make
> 
> foo:
> 	@echo "Just a test."
> 
> \--------------------

Hope that helps.

Cheers,
Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.