rules.mak: add more rules to avoid chaining
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Nov 2016 19:46:13 +0000 (20:46 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Dec 2016 15:00:24 +0000 (16:00 +0100)
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>
Makefile.target
rules.mak

index 6689e31f17ff70827c905afa4be2ceb58df64602..8ae82cb3112b5d6e4cd10282138c4b07483c8fdc 100644 (file)
@@ -76,6 +76,7 @@ $(QEMU_PROG)-simpletrace.stp: $(BUILD_DIR)/trace-events-all
 else
 stap:
 endif
+.PHONY: stap
 
 all: $(PROGS) stap
 
index c69863fd3929479275df01cb067899db717b2787..ce9e7e6ffe57ef5af768c25c1f98d8d50bdf7f36 100644 (file)
--- a/rules.mak
+++ b/rules.mak
@@ -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: