From 18e615189df93cb704c32553a41505a1bdc984f1 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Sat, 2 Feb 2013 20:41:51 +0100 Subject: a bit more reliable detection of removed/added sources Change-Id: I7fdde46334c648ab6cba54210e31fada87dcfb55 --- compilerplugins/Makefile-clang.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compilerplugins/Makefile-clang.mk') 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 -- cgit