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

Re: Makefile help?



Thanks! Just got it working -- the main issues is that the rmic (java rmi 
compiler - it creates stubs for RMI classes) wasn't happy compiling in the 
local directory, but forcing it to compile from one directory up worked. I 
had initially tried something a bit shadier (using ../rmic target) but 
embedding CD on the line worked.

This is all coming up b/c i reorganizing how some of the packages use each 
other. 

-Patrick

On Sun, 2 Nov 2003, Seth Teller wrote:

> 
> 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
> > 
> 
> 
> 

-- 
* * *

Patrick James Nichols II
Graduate Student, MIT Computer Graphics Group
http://graphics.csail.mit.edu/~pnichols