4

Compile a code from a different directory

view full story
linux-howto

http://www.linuxquestions.org – Hi, I do a lot of programming and I have to compile the code quite often. It's not convenient to move to the directory that contains the source code every time I want to compile it. So is there a way to compile a code from the my current directory (say /home example) without moving to the directory that contains the source. I remember being able to do this but forgotten how. Thanks. EDIT: I'm using makefiles to compile. Lets say I'm in the home directory and when I type make -f /code/make_file this doesn (HowTos)