Next: , Previous: , Up: Installation   [Contents][Index]


2.6 Out-of-source build

Out-of-source or VPATH build lets you keep your Lepton source directory clean and get any built files in a separate directory. Otherwise it’s no different from other kinds of compilation. To build in a separate directory, just make it, go to it, and run the build commands described in the previous sections. For example, supposed the current working directory is the root directory of your Lepton repository, you can do:

mkdir ./build/
cd ./build/
autoreconf -ivf .. && ../configure && make && sudo make install

Please note .. in the above commands, it ensures autotools tools will work in the parent directory of build/, that is, in the source directory, and run configure from that directory as well.