diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-02-12 15:02:59 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-02-12 15:08:22 +0100 |
commit | 6257d9ec7961aaea262b5c8e4fc6cbb4e80b1b3a (patch) | |
tree | c6d5c750788803fa6674d027fcef295e264d64d4 | |
parent | 24ddf9c94199adc56232f58486a23bd652785c11 (diff) |
gen_makefile: fix dependency file list
The configure step naturally depends on Makefile.am and *.in files. However,
the automake process also generates Makefile.in files: exclude those from *.in.
This fixes spurious unnecessary rebuilds: especially when libosmocore had
modifications, it often rebuilt *twice* after this (causing all of the other
source trees to rebuild as well).
Change-Id: Ia6f48ac9a8b300440d23c9b495fb39b5e40b59d8
-rwxr-xr-x | gen_makefile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gen_makefile.py b/gen_makefile.py index 1ae29f5..04b16cd 100755 --- a/gen_makefile.py +++ b/gen_makefile.py @@ -167,7 +167,7 @@ def gen_make(proj, deps, configure_opts, jobs, make_dir, src_dir, build_dir, url return r''' ### {proj} ### -{proj}_configure_files := $(shell find {src_proj} -name "Makefile.am" -or -name "*.in" ) +{proj}_configure_files := $(shell find {src_proj} -name "Makefile.am" -or -name "*.in" -and -not -name "Makefile.in" ) {proj}_files := $(shell find {src_proj} -name "*.[hc]" -or -name "*.py" -or -name "*.cpp" ) .make.{proj}.clone: |