diff --git a/Makefile b/Makefile index b6ee119..14e5d03 100644 --- a/Makefile +++ b/Makefile @@ -58,9 +58,9 @@ target/debug/$(EXTENSION_FILENAME): target/debug/$(EXTENSION_LIB_FILENAME) -p $(DUCKDB_PLATFORM) build/debug/$(EXTENSION_FILENAME): target/debug/$(EXTENSION_LIB_FILENAME) - $(shell $(PYTHON_VENV_BIN) -c "from pathlib import Path;Path('./build/debug/extension/$(EXTENSION_NAME)').mkdir(parents=True, exist_ok=True)") - cp target/debug/$(EXTENSION_LIB_FILENAME) build/debug/$(EXTENSION_FILENAME) - cp target/debug/$(EXTENSION_LIB_FILENAME) build/debug/extension/$(EXTENSION_NAME)/$(EXTENSION_FILENAME) + $(PYTHON_VENV_BIN) -c "from pathlib import Path;Path('./build/debug/extension/$(EXTENSION_NAME)').mkdir(parents=True, exist_ok=True)" + $(PYTHON_VENV_BIN) -c "import shutil;shutil.copyfile('target/debug/$(EXTENSION_LIB_FILENAME)', 'build/debug/$(EXTENSION_FILENAME)')" + $(PYTHON_VENV_BIN) -c "import shutil;shutil.copyfile('target/debug/$(EXTENSION_LIB_FILENAME)', 'build/debug/extension/$(EXTENSION_NAME)/$(EXTENSION_FILENAME)')" debug: target/debug/$(EXTENSION_FILENAME) build/debug/$(EXTENSION_FILENAME) @@ -78,9 +78,9 @@ target/release/$(EXTENSION_FILENAME): target/release/$(EXTENSION_LIB_FILENAME) -p $(DUCKDB_PLATFORM) build/release/$(EXTENSION_FILENAME): target/release/$(EXTENSION_LIB_FILENAME) - $(shell $(PYTHON_VENV_BIN) -c "from pathlib import Path;Path('./build/release/extension/$(EXTENSION_NAME)').mkdir(parents=True, exist_ok=True)") - cp target/release/$(EXTENSION_LIB_FILENAME) build/release/$(EXTENSION_FILENAME) - cp target/release/$(EXTENSION_LIB_FILENAME) build/release/extension/$(EXTENSION_NAME)/$(EXTENSION_FILENAME) + $(PYTHON_VENV_BIN) -c "from pathlib import Path;Path('./build/release/extension/$(EXTENSION_NAME)').mkdir(parents=True, exist_ok=True)" + $(PYTHON_VENV_BIN) -c "import shutil;shutil.copyfile('target/release/$(EXTENSION_LIB_FILENAME)', 'build/release/$(EXTENSION_FILENAME)')" + $(PYTHON_VENV_BIN) -c "import shutil;shutil.copyfile('target/release/$(EXTENSION_LIB_FILENAME)', 'build/release/extension/$(EXTENSION_NAME)/$(EXTENSION_FILENAME)')" release: target/release/$(EXTENSION_FILENAME) build/release/$(EXTENSION_FILENAME)