summaryrefslogtreecommitdiff
path: root/compilerplugins/Makefile-clang.mk
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-02-07 17:00:50 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-02-07 17:05:21 +0100
commitc3de6c1a58678a29cee3dcd2d71c8d5127146945 (patch)
tree7107f13fed67c427b3560dc2c713735dc0bec1be /compilerplugins/Makefile-clang.mk
parent5535195c63b6add4fcc787053350a14cf0f1c0c2 (diff)
create an output dir that's already needed by $(shell ...)
Otherwise there's an error message e.g. during a clean build. Change-Id: I42efd08e014a4ebe25cfd1a497f622e5ea5c39ad
Diffstat (limited to 'compilerplugins/Makefile-clang.mk')
-rw-r--r--compilerplugins/Makefile-clang.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk
index b6c99019ffe2..688ab4294763 100644
--- a/compilerplugins/Makefile-clang.mk
+++ b/compilerplugins/Makefile-clang.mk
@@ -35,7 +35,8 @@ compilerplugins: compilerplugins-build
CLANGSRC=$(foreach src,$(wildcard $(CLANGINDIR)/*.cxx), $(notdir $(src)))
# Remember the sources and if they have changed, force plugin relinking.
CLANGSRCCHANGED= \
- $(shell echo $(CLANGSRC) | sort > $(CLANGOUTDIR)/sources-new.txt; \
+ $(shell mkdir -p $(CLANGOUTDIR) ; \
+ echo $(CLANGSRC) | sort > $(CLANGOUTDIR)/sources-new.txt; \
if diff $(CLANGOUTDIR)/sources.txt $(CLANGOUTDIR)/sources-new.txt >/dev/null 2>/dev/null; then \
echo 0; \
else \