From 35ce838c8adbeb351bc15592b01fa9da15686eb9 Mon Sep 17 00:00:00 2001 From: Hunter Nichols Date: Mon, 31 May 2021 01:07:12 -0700 Subject: [PATCH] Fixed issues with makefile with removal of prerequisite --- compiler/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/Makefile b/compiler/Makefile index 175f628e..033e3f0f 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -92,9 +92,10 @@ model: $(STAMPS) python3 $(OPENRAM_HOME)/model_data_util.py $(SIM_DIR) $(CSV_DIR) %.ok: - $(eval bname=$(basename $(notdir $<))) + $(eval bname=$(basename $(notdir $@))) + $(eval config_path=$(CONFIG_DIR)/$(addsuffix .py, $(notdir $(basename $@)))) mkdir -p $(SIM_DIR)/$(bname) - -python3 $(OPENRAM_HOME)/openram.py $(OPTS) -p $(SIM_DIR)/$(bname) -o $(bname) -t $(TECH) $< 2>&1 > /dev/null + -python3 $(OPENRAM_HOME)/openram.py $(OPTS) -p $(SIM_DIR)/$(bname) -o $(bname) -t $(TECH) $(config_path) 2>&1 > /dev/null touch $@ clean_model: