forked from jpcima/tunefish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.linux
36 lines (26 loc) · 943 Bytes
/
Makefile.linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- makefile -*-
PREFIX = /usr/local
LIBDIR = $(PREFIX)/lib
VSTDIR = $(LIBDIR)/vst
LV2DIR = $(LIBDIR)/lv2
SRCDIR := src/tunefish4
JUCEDIR := thirdparty/JUCE
PROJUCER := $(JUCEDIR)/extras/Projucer/Builds/LinuxMakefile/build/Projucer
all: release
release:
$(MAKE) -C $(SRCDIR)/Builds/LinuxMakefile CONFIG=Release
debug:
$(MAKE) -C $(SRCDIR)/Builds/LinuxMakefile CONFIG=Debug
$(PROJUCER):
$(MAKE) -C $(SRCDIR)/extras/Projucer/Builds/LinuxMakefile
resave: $(PROJUCER)
$(PROJUCER) --resave $(SRCDIR)/Tunefish4.jucer
echo "include ../../LV2.mak" >> $(SRCDIR)/Builds/LinuxMakefile/Makefile
clean:
$(MAKE) -C $(SRCDIR)/Builds/LinuxMakefile clean
install: all
install -d $(DESTDIR)$(VSTDIR)
cp -dpf $(SRCDIR)/Builds/LinuxMakefile/build/Tunefish4.so $(DESTDIR)$(VSTDIR)/
install -d $(DESTDIR)$(LV2DIR)
cp -dprf $(SRCDIR)/Builds/LinuxMakefile/build/Tunefish4.lv2/ $(DESTDIR)$(LV2DIR)/
.PHONY: all release debug resave clean install