-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
157 lines (136 loc) · 7.33 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# If RACK_DIR is not defined when calling the Makefile, default to two directories above
RACK_DIR ?= ../..
# FLAGS will be passed to both the C and C++ compiler
FLAGS +=
CFLAGS +=
CXXFLAGS +=
# Careful about linking to shared libraries, since you can't assume much about the user's environment and library search path.
# Static libraries are fine, but they should be added to this plugin's build system.
LDFLAGS +=
# Add .cpp files to the build
SOURCES += $(wildcard src/*.cpp src/utility/*.cpp)
# Add files to the ZIP package when running `make dist`
# The compiled plugin and "plugin.json" are automatically added.
DISTRIBUTABLES += res
DISTRIBUTABLES += $(wildcard LICENSE*)
clion-install-alias: install
install-run: install
"/c/Program Files/VCV/Rack/Rack.exe"
river-bed-theme:
mkdir -p res/panels-river-bed
cp res/panels/* res/panels-river-bed/
sed -i 's/#e6e6e6/#4c5b5c/g' res/panels-river-bed/* # Background
sed -i 's/#f9f9f9/#596868/g' res/panels-river-bed/* # Input area
sed -i 's/#ccc/#414f4f/g' res/panels-river-bed/* # Output area
sed -i 's/#848484/#1f2323/g' res/panels-river-bed/* # Section header
sed -i 's/#606060/#1f2323/g' res/panels-river-bed/* # Text on ouput area
sed -i 's/#010000/#b3b3b3/g' res/panels-river-bed/* # Black text
#sed -i 's/#f8f9f9/#b3b3b3/g' res/panels-river-bed/* # White text
shark-theme:
mkdir -p res/panels-shark
cp res/panels/* res/panels-shark/
sed -i 's/#e6e6e6/#262730/g' res/panels-shark/* # Background
sed -i 's/#f9f9f9/#3a3e49/g' res/panels-shark/* # Input area
sed -i 's/#ccc/#18191e/g' res/panels-shark/* # Output area
sed -i 's/#848484/#c8cace/g' res/panels-shark/* # Section header
sed -i 's/#606060/#c8cace/g' res/panels-shark/* # Text on ouput area
sed -i 's/#010000/#c8cace/g' res/panels-shark/* # Black text
#sed -i 's/#f8f9f9/#b3b3b3/g' res/panels-shark/* # White text
oxford-blue-theme:
mkdir -p res/panels-oxford-blue
cp res/panels/* res/panels-oxford-blue/
sed -i 's/#e6e6e6/#364156/g' res/panels-oxford-blue/* # Background
sed -i 's/#f9f9f9/#45546b/g' res/panels-oxford-blue/* # Input area
sed -i 's/#ccc/#2c3644/g' res/panels-oxford-blue/* # Output area
sed -i 's/#848484/#020405/g' res/panels-oxford-blue/* # Section header
sed -i 's/#606060/#020405/g' res/panels-oxford-blue/* # Text on ouput area
sed -i 's/#010000/#b6bac1/g' res/panels-oxford-blue/* # Black text
#sed -i 's/#f8f9f9/#b3b3b3/g' res/panels-oxford-blue/* # White text
cod-gray-theme:
mkdir -p res/panels-cod-gray
cp res/panels/* res/panels-cod-gray/
sed -i 's/#e6e6e6/#1b1b1b/g' res/panels-cod-gray/* # Background
sed -i 's/#f9f9f9/#333333/g' res/panels-cod-gray/* # Input area
sed -i 's/#ccc/#0a0a0a/g' res/panels-cod-gray/* # Output area
sed -i 's/#848484/#999999/g' res/panels-cod-gray/* # Section header
sed -i 's/#606060/#999999/g' res/panels-cod-gray/* # Text on ouput area
sed -i 's/#010000/#afafaf/g' res/panels-cod-gray/* # Black text
#sed -i 's/#f8f9f9/#b3b3b3/g' res/panels-cod-gray/* # White text
firefly-theme:
mkdir -p res/panels-firefly
cp res/panels/* res/panels-firefly/
sed -i 's/#e6e6e6/#0c2d32/g' res/panels-firefly/* # Background
sed -i 's/#f9f9f9/#2c5256/g' res/panels-firefly/* # Input area
sed -i 's/#ccc/#061c1e/g' res/panels-firefly/* # Output area
sed -i 's/#848484/#b6bfbf/g' res/panels-firefly/* # Section header
sed -i 's/#606060/#b6bfbf/g' res/panels-firefly/* # Text on ouput area
sed -i 's/#010000/#b6bfbf/g' res/panels-firefly/* # Black text
#sed -i 's/#f8f9f9/#b3b3b3/g' res/panels-firefly/* # White text
allthemes: river-bed-theme shark-theme oxford-blue-theme cod-gray-theme firefly-theme
updatethemes: allthemes install
# Determine this makefile's path.
# Be sure to place this BEFORE `include` directives, if any.
THIS_FILE := $(lastword $(MAKEFILE_LIST))
screenshots: module-screenshot combined-screenshots
combined-screenshots:
magick montage -density 300 -tile 0x2 -background none -geometry +5+5 module-screenshots/default/*.png combined-screenshots/default.png
magick montage -density 300 -tile 0x2 -background none -geometry +5+5 module-screenshots/river-bed/*.png combined-screenshots/river-bed.png
magick montage -density 300 -tile 0x2 -background none -geometry +5+5 module-screenshots/shark/*.png combined-screenshots/shark.png
magick montage -density 300 -tile 0x2 -background none -geometry +5+5 module-screenshots/oxford-blue/*.png combined-screenshots/oxford-blue.png
magick montage -density 300 -tile 0x2 -background none -geometry +5+5 module-screenshots/cod-gray/*.png combined-screenshots/cod-gray.png
magick montage -density 300 -tile 0x2 -background none -geometry +5+5 module-screenshots/firefly/*.png combined-screenshots/firefly.png
convert combined-screenshots/default.png -resize 50%x50% combined-screenshots/default.png
convert combined-screenshots/river-bed.png -resize 50%x50% combined-screenshots/river-bed.png
convert combined-screenshots/shark.png -resize 50%x50% combined-screenshots/shark.png
convert combined-screenshots/oxford-blue.png -resize 50%x50% combined-screenshots/oxford-blue.png
convert combined-screenshots/cod-gray.png -resize 50%x50% combined-screenshots/cod-gray.png
convert combined-screenshots/firefly.png -resize 50%x50% combined-screenshots/firefly.png
module-screenshots:
# Clean up
rm -f /C/Users/mail/Documents/Rack/screenshots/TinyTricks/*
#Default theme
@$(MAKE) -f $(THIS_FILE) install
"/c/Program Files/VCV/Rack/Rack.exe" -t 2.f
mkdir -p module-screenshots/default
cp /C/Users/mail/Documents/Rack/screenshots/TinyTricks/* module-screenshots/default/
rm -f /C/Users/mail/Documents/Rack/screenshots/TinyTricks/*
# River bed
sed -i 's/setSkin(0);/setSkin(1);/g' src/shared/shared.cpp
@$(MAKE) -f $(THIS_FILE) install
"/c/Program Files/VCV/Rack/Rack.exe" -t 2.f
mkdir -p module-screenshots/river-bed
cp /C/Users/mail/Documents/Rack/screenshots/TinyTricks/* module-screenshots/river-bed/
rm -f /C/Users/mail/Documents/Rack/screenshots/TinyTricks/*
# Shark
sed -i 's/setSkin(1);/setSkin(2);/g' src/shared/shared.cpp
@$(MAKE) -f $(THIS_FILE) install
"/c/Program Files/VCV/Rack/Rack.exe" -t 2.f
mkdir -p module-screenshots/shark
cp /C/Users/mail/Documents/Rack/screenshots/TinyTricks/* module-screenshots/shark/
rm -f /C/Users/mail/Documents/Rack/screenshots/TinyTricks/*
# Oxford blue
sed -i 's/setSkin(2);/setSkin(3);/g' src/shared/shared.cpp
@$(MAKE) -f $(THIS_FILE) install
"/c/Program Files/VCV/Rack/Rack.exe" -t 2.f
mkdir -p module-screenshots/oxford-blue
cp /C/Users/mail/Documents/Rack/screenshots/TinyTricks/* module-screenshots/oxford-blue/
rm -f /C/Users/mail/Documents/Rack/screenshots/TinyTricks/*
# Cod gray
sed -i 's/setSkin(3);/setSkin(4);/g' src/shared/shared.cpp
@$(MAKE) -f $(THIS_FILE) install
"/c/Program Files/VCV/Rack/Rack.exe" -t 2.f
mkdir -p module-screenshots/cod-gray
cp /C/Users/mail/Documents/Rack/screenshots/TinyTricks/* module-screenshots/cod-gray/
rm -f /C/Users/mail/Documents/Rack/screenshots/TinyTricks/*
# Firefly
sed -i 's/setSkin(4);/setSkin(5);/g' src/shared/shared.cpp
@$(MAKE) -f $(THIS_FILE) install
"/c/Program Files/VCV/Rack/Rack.exe" -t 2.f
mkdir -p module-screenshots/firefly
cp /C/Users/mail/Documents/Rack/screenshots/TinyTricks/* module-screenshots/firefly/
rm -f /C/Users/mail/Documents/Rack/screenshots/TinyTricks/*
# Revert back to default
sed -i 's/setSkin(5);/setSkin(0);/g' src/shared/shared.cpp
@$(MAKE) -f $(THIS_FILE) install
# Include the Rack plugin Makefile framework
include $(RACK_DIR)/plugin.mk