File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,9 @@ KLAYOUT_BIN_FROM_DIR = $(KLAYOUT_DIR)/klayout
301301ifeq ($(wildcard $(KLAYOUT_BIN_FROM_DIR ) ) , $(KLAYOUT_BIN_FROM_DIR ) )
302302KLAYOUT_CMD ?= sh -c 'LD_LIBRARY_PATH=$(dir $(KLAYOUT_BIN_FROM_DIR ) ) $$0 "$$@ "' $(KLAYOUT_BIN_FROM_DIR )
303303else
304- KLAYOUT_CMD ?= $(shell command -v klayout)
304+ ifeq ($(KLAYOUT_CMD ) ,)
305+ KLAYOUT_CMD := $(shell command -v klayout)
306+ endif
305307endif
306308KLAYOUT_FOUND = $(if $(KLAYOUT_CMD ) ,,$(error KLayout not found in PATH) )
307309
@@ -393,7 +395,7 @@ do-klayout_tech:
393395 cp $(TECH_LEF ) $(OBJECTS_DIR ) /klayout_tech.lef
394396
395397KLAYOUT_ENV_VAR_IN_PATH_VERSION = 0.28.11
396- KLAYOUT_VERSION = $(shell $(KLAYOUT_CMD ) -v 2>/dev/null | grep 'KLayout' | cut -d ' ' -f2)
398+ KLAYOUT_VERSION : = $(shell $(KLAYOUT_CMD ) -v 2>/dev/null | grep 'KLayout' | cut -d ' ' -f2)
397399
398400KLAYOUT_ENV_VAR_IN_PATH = $(shell \
399401 if [ -z "$(KLAYOUT_VERSION ) " ]; then \
You can’t perform that action at this time.
0 commit comments