We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f084b07 + e3d366b commit df5f6afCopy full SHA for df5f6af
flow/scripts/variables.mk
@@ -215,7 +215,15 @@ vars:
215
.PHONY: print-%
216
# Print any variable, for instance: make print-DIE_AREA
217
print-%:
218
- $(file >$(OBJECTS_DIR)/print_tmp_$$,$($*))
+ # HERE BE DRAGONS!
219
+ #
220
+ # We have to use /tmp. $(OBJECTS_DIR) may not exist
221
+ # at $(file) expansion time, which is before commands are run
222
+ # here, so we can't mkdir -p $(OBJECTS_DIR) either
223
224
+ # We have to use $(file ...) because we want to be able
225
+ # to print variables that contain newlines.
226
+ $(file >/tmp/print_tmp$$,$($*))
227
@echo -n "$* = "
- @cat $(OBJECTS_DIR)/print_tmp_$$
- @rm $(OBJECTS_DIR)/print_tmp_$$
228
+ @cat /tmp/print_tmp$$
229
+ @rm /tmp/print_tmp$$
0 commit comments