summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-02-02 20:41:51 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-02-02 22:59:46 +0100
commit18e615189df93cb704c32553a41505a1bdc984f1 (patch)
treeed6c0e449f7725b2310958af8b9e9d5bf1496ed5 /compilerplugins
parentc2e2d77b1962e9bd95a54389d8ff568ec7b19a89 (diff)
a bit more reliable detection of removed/added sources
Change-Id: I7fdde46334c648ab6cba54210e31fada87dcfb55
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/Makefile-clang.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk
index 619e11d57b2b..9d6aa14c3e80 100644
--- a/compilerplugins/Makefile-clang.mk
+++ b/compilerplugins/Makefile-clang.mk
@@ -46,6 +46,10 @@ ifeq ($(CLANGSRCCHANGED),1)
CLANGFORCE:
$(CLANGOUTDIR)/plugin.so: CLANGFORCE
endif
+# Make the .so also explicitly depend on the sources list, to force update in case CLANGSRCCHANGED was e.g. during 'make clean'.
+$(CLANGOUTDIR)/plugin.so: $(CLANGOUTDIR)/sources.txt
+$(CLANGOUTDIR)/sources.txt:
+ touch $@
compilerplugins: $(CLANGOUTDIR) $(CLANGOUTDIR)/plugin.so