Fix Makefile for Linux: .app only on macOS, plain executable on Linux

This commit is contained in:
Armin 2026-07-13 22:23:13 +02:00
commit 38c2781d01

View file

@ -22,7 +22,11 @@ endif
# Artefact paths
VST3 := $(BUILD_DIR)/ChromaFlock_artefacts/$(BUILD_TYPE)/VST3/ChromaFlock.vst3
ifeq ($(UNAME_S),Darwin)
APP := $(BUILD_DIR)/ChromaFlock_artefacts/$(BUILD_TYPE)/Standalone/ChromaFlock.app
else
APP := $(BUILD_DIR)/ChromaFlock_artefacts/$(BUILD_TYPE)/Standalone/ChromaFlock
endif
.PHONY: all debug release clean rebuild configure install run help
@ -52,8 +56,6 @@ ifeq ($(UNAME_S),Darwin)
@echo "VST3: ~/Library/Audio/Plug-Ins/VST3/"
@echo "AU: ~/Library/Audio/Plug-Ins/Components/"
else ifeq ($(UNAME_S),Linux)
@echo "VST3: ~/.vst3/"
@echo "Standalone: $(APP)"
@mkdir -p ~/.vst3
@cp -r $(BUILD_DIR)/ChromaFlock_artefacts/$(BUILD_TYPE)/VST3/ChromaFlock.vst3 ~/.vst3/
@echo "Installed ChromaFlock.vst3 to ~/.vst3/"
@ -65,7 +67,7 @@ run: $(APP)
ifeq ($(UNAME_S),Darwin)
open "$(APP)"
else
xdg-open "$(APP)" 2>/dev/null || "$(APP)/Contents/Linux/ChromaFlock" &
"$(APP)" &
endif
help: