makefile - How to launch a make from a sub dir -


i have 1 top level makefile. project has several subdirectories of various depths.

how can launch make subdirectory, uses top level makefile, git finds automatically top-level .git directory ?

structure :

/ /a/ /b/c /makefile /readme 

scenario :

/$ make ... works ... /b$ make ... cannot find makefile 

i'd 2nd scenario same first one.

hint, ideally serve :make rule in vi, shouldn't vi-specific

update: / not root dir, root of project, real intent mimic git

#!/bin/bash    here=$pwd  while ! [ -f makefile ] && [ $pwd != "/" ]  cd .. done  mfile=$pwd/makefile  cd $here make -f $mfile 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -