My question is short and simple. I have my source directory mySrcDir, where my Makefile
is also located and I want to compile it into my build directory myBuildDir.
How do I make
the content of my /some/path/mySrcDir
into /another/path/myBuildDir
?
P.S: OS Ubuntu 14.04
A build directory contains most of the information needed to diagnose build issues. There are different ways to collect it.
In general, the src directory contains the source files needed for application development. The src directory can be expanded to show the following directories.
To see a full description of how to use other advanced build options, refer to the in-kernel documentation on the build system, which can be found in the Documentation/kbuild/ directory of the sources.
1) In your build directory call this :
make -f /some/path/mySrcDir/your-makefile
The -f option is to specify the file you're trying to 'make'.
2) If the Makefile was generated by GNU autotools you can try this :
./configure --prefix=/another/path/myBuildDir
and then make
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With