From a1afdb416d6e6c9e85f69712e0173bfc8b826e5b Mon Sep 17 00:00:00 2001 From: Abraham Gonzalez Date: Tue, 7 Mar 2023 11:25:27 -0800 Subject: [PATCH] Use temp directory for config finder (#1381) --- common.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common.mk b/common.mk index fd264c74..7f2a1f50 100644 --- a/common.mk +++ b/common.mk @@ -398,10 +398,11 @@ endef CONFIG_FRAG_LEVELS ?= 3 .PHONY: find-config-fragments +find-config-fragments: private IN_F := $(shell mktemp -d -t cy-XXXXXXXX)/scala_files.f find-config-fragments: $(SCALA_SOURCES) - rm -rf /tmp/scala_files.f - @$(foreach file,$(SCALA_SOURCES),echo $(file) >> /tmp/scala_files.f${\n}) - $(base_dir)/scripts/config-finder.py -l $(CONFIG_FRAG_LEVELS) /tmp/scala_files.f + @$(foreach file,$(SCALA_SOURCES),echo $(file) >> $(IN_F)${\n}) + $(base_dir)/scripts/config-finder.py -l $(CONFIG_FRAG_LEVELS) $(IN_F) + @rm -rf $(dir $(IN_F)) .PHONY: help help: