assert OPENLANE_ROOT ne to cup/openlane
diff --git a/Makefile b/Makefile index 6f8e5b8..ba36e31 100644 --- a/Makefile +++ b/Makefile
@@ -140,6 +140,11 @@ # Install Openlane .PHONY: openlane openlane: + @if [ "$$(realpath $${OPENLANE_ROOT})" = "$$(realpath $$(pwd)/openlane)" ]; then\ + echo "OPENLANE_ROOT is set to '$$(pwd)/openlane' which contains openlane config files"; \ + echo "Please set it to a different directory"; \ + exit 1; \ + fi cd openlane && $(MAKE) openlane #### Not sure if the targets following are of any use