Closed
Description
make
performs incremental compilation, i.e. it will only rebuild files that have changed. However, apart from few exceptions, our build system currently does not take any dependencies into account. The two most common issues are:
- If a header is changed, all C files including that header may need to be rebuilt. This may be fixed by running
make clean
. - If the build configuration changes (e.g. one of the config.m4 files), then configure needs to be rerun. This may be fixed by running
./buildconf && ./config.nice && make clean
.
The first issue is more common than the second. It would be great if we would at least detect header changes automatically. This should be possible based on the -M
family of compiler flags, but I'm not familiar with how these need to be integrated.