diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-11-02 20:46:13 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-12-22 16:00:24 +0100 |
commit | a273f4cedf011af535ff3757c3a93e7134c198da (patch) | |
tree | 99f5d06f166ea5f8e1cd949e35809bab13fb885e | |
parent | 5ffb3505412b08fb6398748de7eb0fb2cfbfe4e7 (diff) |
rules.mak: add more rules to avoid chaining
Really rule chaining is not a particularly expensive task, since
GNU Make caches the directory listing. However it is easy to
avoid it for most files and for phony targets (one was missing).
After this patch, only "Makefile", "scripts/hxtool" and
"scripts/create_config" attempt to use chained rules.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | Makefile.target | 1 | ||||
-rw-r--r-- | rules.mak | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.target b/Makefile.target index 6689e31f17..8ae82cb311 100644 --- a/Makefile.target +++ b/Makefile.target @@ -76,6 +76,7 @@ $(QEMU_PROG)-simpletrace.stp: $(BUILD_DIR)/trace-events-all else stap: endif +.PHONY: stap all: $(PROGS) stap @@ -7,6 +7,10 @@ MAKEFLAGS += -rR # Files with this suffixes are final, don't try to generate them # using implicit rules +%/trace-events: +%.hx: +%.py: +%.objs: %.d: %.h: %.c: |