diff options
author | Kir Kolyshkin <kir@openvz.org> | 2017-02-23 02:15:49 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@virtuozzo.com> | 2017-03-15 09:36:08 +0300 |
commit | ab90777ca1bca9414fdbe72a8e99d2ed9213279a (patch) | |
tree | c403dc9f8e8023c8c2cdba1b2e35f9b2ed1fb383 /Makefile.compel | |
parent | 15a757f6be76511b2816fb461f3ff060561af6f9 (diff) |
Makefiles: protect from % rules, don't rebuild
GNU make tries to rebuild any makefiles it uses. While in general it's
a good idea (and it is used e.g. in autoconf-based builds), in our case
it is not necessary, as all the makefiles are static.
More to say, as we have a few "match anything" rules for subdirectories,
Makefiles in these subdirs are also matching these rules, which leads to
excessive (re)building while a particular makefile is needed.
Protect such Makefiles with explicit (or pattern) rules, so make knows
it should do nothing to rebuild those.
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'Makefile.compel')
-rw-r--r-- | Makefile.compel | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.compel b/Makefile.compel index 7586ef3ac..408f0a701 100644 --- a/Makefile.compel +++ b/Makefile.compel @@ -31,6 +31,7 @@ criu-deps += compel/$(LIBCOMPEL_A) # # Compel itself. +compel/Makefile: ; compel/%: $(compel-deps) $(compel-plugins) .FORCE $(Q) $(MAKE) $(build)=compel $@ @@ -38,6 +39,7 @@ criu-deps += compel/compel-host-bin # # Plugins +compel/plugins/Makefile: ; compel/plugins/%: $(compel-deps) .FORCE $(Q) $(MAKE) $(build)=compel/plugins $@ |