estraier / tkrzw

a set of implementations of DBM
Apache License 2.0
164 stars 20 forks source link

tkrzw does not build from external build directory #18

Closed mdorier closed 3 years ago

mdorier commented 3 years ago

Right now tkrzw can only be built by calling configure from the source directory, which is a bit uncommon. Usually it's preferable to create a build directory somewhere and call configure from there, to not pollute the source tree with build files. e.g. from the source tree:

mkdir build
cd build
../configure
make
make install

(this will not currently work)

It would be good to be able to build from any directory rather than from within the source tree.

estraier commented 3 years ago

I pushed a change to fix this problem. Makefile now uses VPATH to support building in a subdirectory.