Tom Browder <tom.brow...@gmail.com> wrote: > % : > <tab>( cd $(MASTERDIR); $(MAKE) $@ ) ... > I would like to call, from the user directory: > > make tgt > > and have the top Makefile translate to the $(RUNDIR)/tgt.
Change the subdirectory Makefile to use: % : ( cd $(MASTERDIR); $(MAKE) RUNDIR=`pwd` $@ ) paul