forked from SpotlightKid/dfzitarev1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
85 lines (62 loc) · 1.95 KB
/
Makefile
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/make -f
# Makefile for DISTRHO Plugins #
# ---------------------------- #
# Created by falkTX, Christopher Arndt, and Patrick Desaulniers
#
SHELL=/bin/bash
-include dpf/Makefile.base.mk
all: libs plugins gen
# --------------------------------------------------------------
PLUGINS = dfzitarev1
DPF_PATCHES = \
dpf/fix-lv2-version-export.patch \
dpf/no-port-name-lv2-prefix.patch
PLUGIN_BASE_URI = https://chrisarndt.de/plugins/
submodules:
-test -d .git && git submodule update --init --recursive
libs: submodules patch
patch: submodules
@-for p in $(DPF_PATCHES); do \
echo "Applying patch '$${p}'..."; \
patch -d dpf -r - -p1 -N -V none -i ../patches/$${p}; \
done
plugins: $(PLUGINS)
$(PLUGINS):
$(MAKE) all -C plugins/$@
ifneq ($(CROSS_COMPILING),true)
gen: plugins dpf/utils/lv2_ttl_generator
@$(CURDIR)/dpf/utils/generate-ttl.sh
ifeq ($(MACOS),true)
@$(CURDIR)/dpf/utils/generate-vst-bundles.sh
endif
dpf/utils/lv2_ttl_generator:
$(MAKE) -C dpf/utils/lv2-ttl-generator
else
gen: plugins dpf/utils/lv2_ttl_generator.exe
@$(CURDIR)/dpf/utils/generate-ttl.sh
dpf/utils/lv2_ttl_generator.exe:
$(MAKE) -C dpf/utils/lv2-ttl-generator WINDOWS=true
endif
# --------------------------------------------------------------
lv2lint: gen
@for plug in $(PLUGINS); do \
lv2lint -Mpack -q -s lv2_generate_ttl -t "Plugin Author Email" \
-I bin/$${plug,,}.lv2/ "$(PLUGIN_BASE_URI)$${plug,,}"; \
done
# --------------------------------------------------------------
clean:
$(MAKE) clean -C dpf/utils/lv2-ttl-generator
@for plug in $(PLUGINS); do \
$(MAKE) clean -C plugins/$${plug}; \
done
rm -rf bin build
install: all
@for plug in $(PLUGINS); do \
$(MAKE) install -C plugins/$${plug}; \
done
install-user: all
@for plug in $(PLUGINS); do \
$(MAKE) install-user -C plugins/$${plug}; \
done
# --------------------------------------------------------------
.PHONY: all clean gen install install-user libs lv2lint patch plugins submodule