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

Re: Makefile help?




makefiles are a black art. you can probably force what you want by doing (on one line):

cd .. ; make -f dir/Makefile target

where "dir" is what you just cd'ed out of, and target
is the Makefile target you want (you can omit this if
you want the first or only target in the Makefile).
the whitespace to the left of cd above is a single tab.

that said:  there's probably a simpler way to do this,
based on redesigning the Makefile.  if you describe
more about what "freaks out" means, i can probably help
more.

seth.

Patrick Nichols wrote:
Hey Luka + BMGers,

I've got code that compiles nicely, but am having a hard time getting a makefile to actually get the stuff to work. The problem is that if I am in the directory of the code itself, the makefile command line compilation freaks out. If I one directory up, things work fine.

So, the question is: is there a way in my Makefile to specify compilation as though I were one directory up?

Also, any pointers to good references on this stuff?

--Patrick