about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Throwe <wtt6@cornell.edu>2015-11-13 14:54:25 -0500
committerWilliam Throwe <wtt6@cornell.edu>2015-11-13 15:15:51 -0500
commit876c33051a54e03fcd054408b87cf8ca0550f115 (patch)
tree481f150c06e3b21d0fadefcbd3fbcf0f264a3ec9
parent8a813e088cf2169f1e1ff5a18c6b26d847885e3d (diff)
downloadrust-876c33051a54e03fcd054408b87cf8ca0550f115.tar.gz
rust-876c33051a54e03fcd054408b87cf8ca0550f115.zip
Escape some variables in llvm.mk
The important one is $(MAKE).  make handles recipes containing the
literal string "$(MAKE)" specially, so it is important to make sure it
isn't evaluated until recipe invocation time.
-rw-r--r--mk/llvm.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/llvm.mk b/mk/llvm.mk
index 1cbf4a9fb84..b2a90f583f7 100644
--- a/mk/llvm.mk
+++ b/mk/llvm.mk
@@ -64,10 +64,10 @@ $$(LLVM_AR_$(1)): $$(LLVM_CONFIG_$(1))
 # when we changed something not otherwise captured by builtin
 # dependencies. In these cases, commit a change that touches
 # the stamp in the source dir.
-$$(LLVM_STAMP_$(1)): $(S)src/rustllvm/llvm-auto-clean-trigger
+$$(LLVM_STAMP_$(1)): $$(S)src/rustllvm/llvm-auto-clean-trigger
 	@$$(call E, make: cleaning llvm)
-	$(Q)touch $$@.start_time
-	$(Q)$(MAKE) clean-llvm$(1)
+	$$(Q)touch $$@.start_time
+	$$(Q)$$(MAKE) clean-llvm$(1)
 	@$$(call E, make: done cleaning llvm)
 	touch -r $$@.start_time $$@ && rm $$@.start_time