diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-02 23:14:54 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-06 09:10:04 -0800 |
commit | 1cf787f28182861790518eebeb550bf59b3f29cd (patch) | |
tree | 365cb8e1712a96bc4b9b90929e1aa7eff0cd7ce4 | |
parent | 90f5af8a90df5e8aa5a22a9d42e252703ee7f77d (diff) | |
download | meson-1cf787f28182861790518eebeb550bf59b3f29cd.zip meson-1cf787f28182861790518eebeb550bf59b3f29cd.tar.gz meson-1cf787f28182861790518eebeb550bf59b3f29cd.tar.bz2 |
Added reconfigure target that always reruns Meson.
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 4 | ||||
-rw-r--r-- | mesonbuild/coredata.py | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 738d316..8329b59 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -2100,5 +2100,9 @@ rule FORTRAN_DEP_HACK elem.add_item('pool', 'console') elem.write(outfile) + elem = NinjaBuildElement(self.all_outputs, 'reconfigure', 'REGENERATE_BUILD', 'PHONY') + elem.add_item('pool', 'console') + elem.write(outfile) + elem = NinjaBuildElement(self.all_outputs, deps, 'phony', '') elem.write(outfile) diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index c8ee13f..fad39e6 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -247,4 +247,5 @@ forbidden_target_names = {'clean': None, 'install': None, 'build.ninja': None, 'scan-build': None, + 'reconfigure': None, } |