monostep/Makefile
2026-08-05 23:12:17 +02:00

30 lines
822 B
Makefile

SHELL := /bin/bash
BUILD_DIR := build
PLUGIN_DIR := build/Monostep_artefacts/Release/VST3
PLUGIN := Monostep.vst3
VST3_DIR := $(HOME)/Library/Audio/Plug-Ins/VST3
TEST_HOST := build/MonostepTestHost_artefacts/Release/MonostepTestHost
.PHONY: all build install test clean
all: install
# Configure (if needed) and build the VST3 plugin.
build:
cmake -S . -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=Release
cmake --build $(BUILD_DIR) --target Monostep_VST3
# Build then copy the fresh plugin into the user VST3 directory.
install: build
@mkdir -p "$(VST3_DIR)"
@rm -rf "$(VST3_DIR)/$(PLUGIN)"
cp -R "$(PLUGIN_DIR)/$(PLUGIN)" "$(VST3_DIR)/"
@echo "Installed $(PLUGIN) into $(VST3_DIR)"
test: build
cmake --build $(BUILD_DIR) --target MonostepTestHost
"$(TEST_HOST)" "$(PLUGIN_DIR)/$(PLUGIN)"
clean:
rm -rf $(BUILD_DIR)