mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Fix Makefile for Linux: .app only on macOS, plain executable on Linux
This commit is contained in:
parent
1a7ef69d34
commit
38c2781d01
1 changed files with 6 additions and 4 deletions
10
Makefile
10
Makefile
|
|
@ -22,7 +22,11 @@ endif
|
|||
|
||||
# Artefact paths
|
||||
VST3 := $(BUILD_DIR)/ChromaFlock_artefacts/$(BUILD_TYPE)/VST3/ChromaFlock.vst3
|
||||
APP := $(BUILD_DIR)/ChromaFlock_artefacts/$(BUILD_TYPE)/Standalone/ChromaFlock.app
|
||||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue