From 95238de3459ef32e7f8602f05aab9210f505c86b Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sat, 11 Jul 2020 22:59:54 +0200 Subject: [PATCH] build: Don't try to make timing for non-checked out submodules If a library directory doesn't contain a 'cells' subdir, it's most likely not checked out, so skip it Fixes #76 Signed-off-by: Sylvain Munaut --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a235a27..e0b7353 100644 --- a/Makefile +++ b/Makefile @@ -69,14 +69,18 @@ LIBRARIES = $(sort $(notdir $(wildcard libraries/sky130_*_sc_*))) $(LIBRARIES): | $(CONDA_ENV_PYTHON) @$(IN_CONDA_ENV) for V in libraries/$@/*; do \ - python -m skywater_pdk.liberty $$V; \ - python -m skywater_pdk.liberty $$V all; \ - python -m skywater_pdk.liberty $$V all --ccsnoise; \ + if [ -d "$$V/cells" ]; then \ + python -m skywater_pdk.liberty $$V; \ + python -m skywater_pdk.liberty $$V all; \ + python -m skywater_pdk.liberty $$V all --ccsnoise; \ + fi \ done sky130_fd_sc_ms-leakage: | $(CONDA_ENV_PYTHON) @$(IN_CONDA_ENV) for V in libraries/sky130_fd_sc_ms/*; do \ - python -m skywater_pdk.liberty $$V all --leakage; \ + if [ -d "$$V/cells" ]; then \ + python -m skywater_pdk.liberty $$V all --leakage; \ + fi \ done sky130_fd_sc_ms: sky130_fd_sc_ms-leakage