Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions flow/scripts/variables.mk
Original file line number Diff line number Diff line change
Expand Up @@ -217,16 +217,5 @@ vars:

.PHONY: print-%
print-%:
# HERE BE DRAGONS!
#
# We have to use /tmp. $(OBJECTS_DIR) may not exist
# at $(file) expansion time, which is before commands are run
# here, so we can't mkdir -p $(OBJECTS_DIR) either
#
# We have to use $(file ...) because we want to be able
# to print variables that contain newlines.
$(eval TEMP_FILE := $(shell mktemp /tmp/print_tmp.XXXXXX))
@$(file >$(TEMP_FILE),$($*))
@echo -n "$*: "
@cat $(TEMP_FILE)
@rm -f $(TEMP_FILE)
$(info $*: $($*))
@true