]> git.tuebingen.mpg.de Git - paraslash.git/commit
build: Create .dep files only during compilation.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 21 Jan 2017 15:18:44 +0000 (16:18 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 Mar 2017 09:02:28 +0000 (11:02 +0200)
commitdd7675ad75d88dfebaf56cb0cab2f6c3171d5c85
tree6eb922dca138b334f820af935091642a6c9df0ba
parent662f698c51be189d97e5ab713494ce492c6534c7
build: Create .dep files only during compilation.

It is unnecessary to run a dedicated command to create the dependency
files because:

* If the object file does not exist, we have to run the compiler
anyway, which creates the dependency on the fly.

* If the object file exists, the dependency file also exists, so
the build system notices if the object file needs to be rebuilt,
for example because an included header file was modified.

The only thing we must guarantee is that all included header files
exist. We do this by introducing an order-only dependency: all object
files depend on all .lsg.h files but we impose this specific ordering
without forcing the targets to be updated.

This speeds up the build a lot and also simplifies Makefile.real.
Makefile.real
m4/lls/makefile