Skip to content

Commit 20d11c6

Browse files
authored
Merge pull request #4461 from oharboe/do-sdc-clock-period
Add explicit do-sdc-clock-period target
2 parents 7386fff + 5e8d809 commit 20d11c6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎flow/Makefile‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,12 @@ memory:
255255
#-------------------------------------------------------------------------------
256256

257257
$(SDC_FILE_CLOCK_PERIOD): $(SDC_FILE)
258-
mkdir -p $(dir $@)
259-
echo $(ABC_CLOCK_PERIOD_IN_PS) > $@
258+
$(UNSET_AND_MAKE) do-sdc-clock-period
259+
260+
.PHONY: do-sdc-clock-period
261+
do-sdc-clock-period:
262+
mkdir -p $(dir $(SDC_FILE_CLOCK_PERIOD))
263+
echo $(ABC_CLOCK_PERIOD_IN_PS) > $(SDC_FILE_CLOCK_PERIOD)
260264

261265
.PHONY: yosys-dependencies
262266
yosys-dependencies: $(YOSYS_DEPENDENCIES)

0 commit comments

Comments
 (0)