forked from eruption-project/eruption
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
365 lines (317 loc) · 19.3 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
# SPDX-License-Identifier: GPL-3.0-or-later
#
# This file is part of Eruption.
#
# Eruption is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Eruption is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Eruption. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright (c) 2019-2023, The Eruption Development Team
BUILDFLAGS := --release
TARGET_DIR := /usr
SOURCE_DIR := target/release
SUDO := sudo
all: build
build:
@cargo build $(BUILDFLAGS)
@echo ""
@echo "Now please run 'sudo make install' to install Eruption"
@echo ""
@echo "If Eruption is already running, stop it first. Consider:"
@echo "'make stop && sudo make install && make start'"
@echo ""
start:
@echo "Notifying system daemons about Eruption..."
@echo ""
-@$(SUDO) systemctl daemon-reload
-@systemctl --user daemon-reload
-@$(SUDO) /usr/bin/systemd-sysusers
-@$(SUDO) systemctl reload dbus.service
-@$(SUDO) systemctl reload systemd-udevd
-@$(SUDO) modprobe uinput
-@$(SUDO) udevadm trigger
@echo "Starting up Eruption daemons..."
-@systemctl --user import-environment WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP DISPLAY XAUTHORITY > /dev/null 2>&1
-@systemctl --user enable --now eruption-fx-proxy.service
-@systemctl --user enable --now eruption-audio-proxy.service
-@systemctl --user enable --now eruption-process-monitor.service
-@$(SUDO) systemctl unmask eruption.service
-@$(SUDO) systemctl enable --now eruption.service
stop:
@echo "Notifying system daemons about Eruption..."
@echo ""
-@$(SUDO) systemctl daemon-reload
-@systemctl --user daemon-reload
-@$(SUDO) systemctl reload dbus.service
-@$(SUDO) systemctl reload systemd-udevd
@echo "Shutting down daemons..."
-@systemctl --user disable --now eruption-fx-proxy.service
-@systemctl --user disable --now eruption-audio-proxy.service
-@systemctl --user disable --now eruption-process-monitor.service
-@$(SUDO) systemctl mask eruption.service
-@$(SUDO) systemctl disable --now eruption.service
install:
@echo "Please ensure that all Eruption daemons have been shut down completely!"
@echo "Otherwise there will probably be errors during installation (file busy)"
@echo ""
@echo "Creating 'eruption' system user and group..."
@echo ""
@cp "support/sysusers.d/eruption.conf" "$(TARGET_DIR)/lib/sysusers.d/eruption.conf"
-@systemctl daemon-reload
@/usr/bin/systemd-sysusers
@echo "Commencing installation of Eruption..."
@echo ""
@mkdir -p "/etc/eruption"
@mkdir -p "$(TARGET_DIR)/share/doc/eruption"
@mkdir -p "$(TARGET_DIR)/share/eruption/scripts/lib/macros"
@mkdir -p "$(TARGET_DIR)/share/eruption/scripts/lib/keymaps"
@mkdir -p "$(TARGET_DIR)/share/eruption/scripts/lib/themes"
@mkdir -p "$(TARGET_DIR)/share/eruption/scripts/lib/hwdevices/keyboards"
@mkdir -p "$(TARGET_DIR)/share/eruption/scripts/lib/hwdevices/mice"
@mkdir -p "$(TARGET_DIR)/share/eruption/scripts/examples"
@mkdir -p "$(TARGET_DIR)/share/applications"
@mkdir -p "$(TARGET_DIR)/share/icons/hicolor/64x64/apps"
@mkdir -p "$(TARGET_DIR)/share/eruption-gui-gtk3/schemas"
@mkdir -p "/var/lib/eruption/profiles"
@mkdir -p "$(TARGET_DIR)/lib/systemd/system"
@mkdir -p "$(TARGET_DIR)/lib/systemd/system-preset"
@mkdir -p "$(TARGET_DIR)/lib/systemd/user"
@mkdir -p "$(TARGET_DIR)/lib/systemd/user-preset"
@mkdir -p "$(TARGET_DIR)/lib/systemd/system-sleep"
@mkdir -p "$(TARGET_DIR)/lib/sysusers.d/"
@mkdir -p "$(TARGET_DIR)/lib/udev/rules.d/"
@mkdir -p "$(TARGET_DIR)/share/dbus-1/system.d"
@mkdir -p "$(TARGET_DIR)/share/dbus-1/system-services"
@mkdir -p "$(TARGET_DIR)/share/dbus-1/session.d"
@mkdir -p "$(TARGET_DIR)/share/polkit-1/actions"
@mkdir -p "$(TARGET_DIR)/share/polkit-1/rules.d"
@mkdir -p "$(TARGET_DIR)/share/man/man8"
@mkdir -p "$(TARGET_DIR)/share/man/man5"
@mkdir -p "$(TARGET_DIR)/share/man/man1"
@mkdir -p "$(TARGET_DIR)/share/bash-completion/completions"
@mkdir -p "$(TARGET_DIR)/share/fish/completions"
@mkdir -p "$(TARGET_DIR)/share/zsh/site-functions"
@mkdir -p "$(TARGET_DIR)/share/eruption/i18n"
@mkdir -p "$(TARGET_DIR)/share/eruption/sfx"
# @cp "support/assets/pyroclasm/pyroclasm.desktop" "$(TARGET_DIR)/share/applications/"
@cp "support/assets/eruption-gui-gtk3/eruption-gui-gtk3.desktop" "$(TARGET_DIR)/share/applications/"
@cp "support/assets/eruption-gui-gtk3/eruption-gui.png" "$(TARGET_DIR)/share/icons/hicolor/64x64/apps/"
@cp "eruption-gui-gtk3/schemas/gschemas.compiled" "$(TARGET_DIR)/share/eruption-gui-gtk3/schemas/"
@cp "support/systemd/eruption-suspend.sh" "$(TARGET_DIR)/lib/systemd/system-sleep/eruption"
@cp "support/config/eruption.conf" "/etc/eruption/"
@cp "support/config/fx-proxy.conf" "/etc/eruption/"
@cp "support/config/audio-proxy.conf" "/etc/eruption/"
@cp "support/config/process-monitor.conf" "/etc/eruption/"
@cp "support/profile.d/eruption.sh" "/etc/profile.d/eruption.sh"
@cp "support/modules-load.d/eruption.conf" "/etc/modules-load.d/eruption.conf"
@cp "support/systemd/eruption.service" "$(TARGET_DIR)/lib/systemd/system/"
@cp "support/systemd/eruption.preset" "$(TARGET_DIR)/lib/systemd/system-preset/50-eruption.preset"
@cp "support/systemd/eruption-fx-proxy.service" "$(TARGET_DIR)/lib/systemd/user/"
@cp "support/systemd/eruption-fx-proxy.preset" "$(TARGET_DIR)/lib/systemd/user-preset/50-eruption-fx-proxy.preset"
@cp "support/systemd/eruption-audio-proxy.service" "$(TARGET_DIR)/lib/systemd/user/"
@cp "support/systemd/eruption-audio-proxy.preset" "$(TARGET_DIR)/lib/systemd/user-preset/50-eruption-audio-proxy.preset"
@cp "support/systemd/eruption-process-monitor.service" "$(TARGET_DIR)/lib/systemd/user/"
@cp "support/systemd/eruption-process-monitor.preset" "$(TARGET_DIR)/lib/systemd/user-preset/50-eruption-process-monitor.preset"
@cp "support/systemd/eruption-hotplug-helper.service" "$(TARGET_DIR)/lib/systemd/system/"
@cp "support/systemd/eruption-hotplug-helper.preset" "$(TARGET_DIR)/lib/systemd/system-preset/50-eruption-hotplug-helper.preset"
# @cp "support/sysusers.d/eruption.conf" "$(TARGET_DIR)/lib/sysusers.d/eruption.conf"
@cp "support/udev/99-eruption.rules" "$(TARGET_DIR)/lib/udev/rules.d/"
@cp "support/dbus/org.eruption.service" "$(TARGET_DIR)/share/dbus-1/system-services/"
@cp "support/dbus/org.eruption.conf" "$(TARGET_DIR)/share/dbus-1/system.d/"
@cp "support/dbus/org.eruption.process_monitor.conf" "$(TARGET_DIR)/share/dbus-1/session.d/"
@cp "support/dbus/org.eruption.fx_proxy.conf" "$(TARGET_DIR)/share/dbus-1/session.d/"
@cp "support/policykit/org.eruption.policy" "$(TARGET_DIR)/share/polkit-1/actions/"
@cp "support/policykit/org.eruption.rules" "$(TARGET_DIR)/share/polkit-1/rules.d/"
@cp "support/man/eruption.8" "$(TARGET_DIR)/share/man/man8/"
@cp "support/man/eruption-cmd.8" "$(TARGET_DIR)/share/man/man8/"
@cp "support/man/eruption.conf.5" "$(TARGET_DIR)/share/man/man5/"
@cp "support/man/process-monitor.conf.5" "$(TARGET_DIR)/share/man/man5/"
# @cp "support/man/pyroclasm.1" "$(TARGET_DIR)/share/man/man1/"
@cp "support/man/eruptionctl.1" "$(TARGET_DIR)/share/man/man1/"
@cp "support/man/eruption-hwutil.8" "$(TARGET_DIR)/share/man/man8/"
@cp "support/man/eruption-macro.1" "$(TARGET_DIR)/share/man/man1/"
@cp "support/man/eruption-keymap.1" "$(TARGET_DIR)/share/man/man1/"
@cp "support/man/eruption-netfx.1" "$(TARGET_DIR)/share/man/man1/"
@cp "support/man/eruption-fx-proxy.1" "$(TARGET_DIR)/share/man/man1/"
@cp "support/man/eruption-audio-proxy.1" "$(TARGET_DIR)/share/man/man1/"
@cp "support/man/eruption-process-monitor.1" "$(TARGET_DIR)/share/man/man1/"
@cp "support/shell/completions/en_US/eruption-cmd.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/eruption-cmd"
@cp "support/shell/completions/en_US/eruption-hwutil.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/eruption-hwutil"
@cp "support/shell/completions/en_US/eruption-debug-tool.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/eruption-debug-tool"
@cp "support/shell/completions/en_US/eruption-macro.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/eruption-macro"
@cp "support/shell/completions/en_US/eruption-keymap.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/eruption-keymap"
@cp "support/shell/completions/en_US/eruption-netfx.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/eruption-netfx"
@cp "support/shell/completions/en_US/eruption-fx-proxy.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/eruption-fx-proxy"
@cp "support/shell/completions/en_US/eruption-audio-proxy.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/eruption-audio-proxy"
@cp "support/shell/completions/en_US/eruption-process-monitor.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/eruption-process-monitor"
@cp "support/shell/completions/en_US/eruptionctl.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/eruptionctl"
# @cp "support/shell/completions/en_US/pyroclasm.bash-completion" "$(TARGET_DIR)/share/bash-completion/completions/pyroclasm"
@cp "support/shell/completions/en_US/eruption-cmd.fish-completion" "$(TARGET_DIR)/share/fish/completions/eruption-cmd.fish"
@cp "support/shell/completions/en_US/eruption-hwutil.fish-completion" "$(TARGET_DIR)/share/fish/completions/eruption-hwutil.fish"
@cp "support/shell/completions/en_US/eruption-debug-tool.fish-completion" "$(TARGET_DIR)/share/fish/completions/eruption-debug-tool.fish"
@cp "support/shell/completions/en_US/eruption-macro.fish-completion" "$(TARGET_DIR)/share/fish/completions/eruption-macro.fish"
@cp "support/shell/completions/en_US/eruption-keymap.fish-completion" "$(TARGET_DIR)/share/fish/completions/eruption-keymap.fish"
@cp "support/shell/completions/en_US/eruption-netfx.fish-completion" "$(TARGET_DIR)/share/fish/completions/eruption-netfx.fish"
@cp "support/shell/completions/en_US/eruption-fx-proxy.fish-completion" "$(TARGET_DIR)/share/fish/completions/eruption-fx-proxy.fish"
@cp "support/shell/completions/en_US/eruption-audio-proxy.fish-completion" "$(TARGET_DIR)/share/fish/completions/eruption-audio-proxy.fish"
@cp "support/shell/completions/en_US/eruption-process-monitor.fish-completion" "$(TARGET_DIR)/share/fish/completions/eruption-process-monitor.fish"
@cp "support/shell/completions/en_US/eruptionctl.fish-completion" "$(TARGET_DIR)/share/fish/completions/eruptionctl.fish"
# @cp "support/shell/completions/en_US/pyroclasm.fish-completion" "$(TARGET_DIR)/share/fish/completions/pyroclasm.fish"
@cp "support/shell/completions/en_US/eruption-cmd.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_eruption-cmd"
@cp "support/shell/completions/en_US/eruption-hwutil.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_eruption-hwutil"
@cp "support/shell/completions/en_US/eruption-debug-tool.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_eruption-debug-tool"
@cp "support/shell/completions/en_US/eruption-macro.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_eruption-macro"
@cp "support/shell/completions/en_US/eruption-keymap.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_eruption-keymap"
@cp "support/shell/completions/en_US/eruption-netfx.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_eruption-netfx"
@cp "support/shell/completions/en_US/eruption-fx-proxy.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_eruption-fx-proxy"
@cp "support/shell/completions/en_US/eruption-audio-proxy.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_eruption-audio-proxy"
@cp "support/shell/completions/en_US/eruption-process-monitor.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_eruption-process-monitor"
@cp "support/shell/completions/en_US/eruptionctl.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_eruptionctl"
# @cp "support/shell/completions/en_US/pyroclasm.zsh-completion" "$(TARGET_DIR)/share/zsh/site-functions/_pyroclasm"
@cp "support/sfx/typewriter1.wav" "$(TARGET_DIR)/share/eruption/sfx/"
@cp "support/sfx/phaser1.wav" "$(TARGET_DIR)/share/eruption/sfx/"
@cp "support/sfx/phaser2.wav" "$(TARGET_DIR)/share/eruption/sfx/"
@chmod 0755 $(TARGET_DIR)/lib/systemd/system-sleep/eruption
@ln -fs "phaser1.wav" "$(TARGET_DIR)/share/eruption/sfx/key-down.wav"
@ln -fs "phaser2.wav" "$(TARGET_DIR)/share/eruption/sfx/key-up.wav"
@cp -r eruption/src/scripts/* $(TARGET_DIR)/share/eruption/scripts/
@cp -r support/profiles/* /var/lib/eruption/profiles/
@cp target/release/eruption $(TARGET_DIR)/bin/
@cp target/release/eruptionctl $(TARGET_DIR)/bin/
@cp target/release/eruption-cmd $(TARGET_DIR)/bin/
@cp target/release/eruption-macro $(TARGET_DIR)/bin/
@cp target/release/eruption-keymap $(TARGET_DIR)/bin/
@cp target/release/eruption-hwutil $(TARGET_DIR)/bin/
@cp target/release/eruption-netfx $(TARGET_DIR)/bin/
@cp target/release/eruption-debug-tool $(TARGET_DIR)/bin/
@cp target/release/eruption-hotplug-helper $(TARGET_DIR)/bin/
@cp target/release/eruption-util $(TARGET_DIR)/bin/
@cp target/release/eruption-gui-gtk3 $(TARGET_DIR)/bin/
@cp target/release/eruption-fx-proxy $(TARGET_DIR)/bin/
@cp target/release/eruption-audio-proxy $(TARGET_DIR)/bin/
@cp target/release/eruption-process-monitor $(TARGET_DIR)/bin/
# @cp target/release/pyroclasm $(TARGET_DIR)/bin/
@setcap CAP_NET_ADMIN+ep $(TARGET_DIR)/bin/eruption-process-monitor
@chown -R eruption:eruption /var/lib/eruption
@echo ""
@echo "Successfully installed Eruption!"
@echo "Now please run 'make start' to enable Eruption"
@echo ""
uninstall:
@echo "Commencing removal of Eruption..."
@echo ""
-@rm $(TARGET_DIR)/bin/eruption
-@rm $(TARGET_DIR)/bin/eruptionctl
-@rm $(TARGET_DIR)/bin/eruption-cmd
-@rm $(TARGET_DIR)/bin/eruption-hwutil
-@rm $(TARGET_DIR)/bin/eruption-macro
-@rm $(TARGET_DIR)/bin/eruption-keymap
-@rm $(TARGET_DIR)/bin/eruption-netfx
-@rm $(TARGET_DIR)/bin/eruption-debug-tool
-@rm $(TARGET_DIR)/bin/eruption-hotplug-helper
-@rm $(TARGET_DIR)/bin/eruption-util
-@rm $(TARGET_DIR)/bin/eruption-gui-gtk3
-@rm $(TARGET_DIR)/bin/eruption-fx-proxy
-@rm $(TARGET_DIR)/bin/eruption-audio-proxy
-@rm $(TARGET_DIR)/bin/eruption-process-monitor
# -@rm $(TARGET_DIR)/bin/pyroclasm
# -@rm $(TARGET_DIR)/share/applications/pyroclasm.desktop
-@rm $(TARGET_DIR)/share/applications/eruption-gui-gtk3.desktop
-@rm $(TARGET_DIR)/share/icons/hicolor/64x64/apps/eruption-gui-gtk3.png
-@rm $(TARGET_DIR)/share/eruption-gui-gtk3/schemas/gschemas.compiled
-@rm $(TARGET_DIR)/lib/systemd/system-sleep/eruption
-@rm $(TARGET_DIR)/lib/systemd/system/eruption.service
-@rm $(TARGET_DIR)/lib/systemd/system-preset/50-eruption.preset
-@rm $(TARGET_DIR)/lib/systemd/user/eruption-fx-proxy.service
-@rm $(TARGET_DIR)/lib/systemd/user-preset/50-eruption-fx-proxy.preset
-@rm $(TARGET_DIR)/lib/systemd/user/eruption-audio-proxy.service
-@rm $(TARGET_DIR)/lib/systemd/user-preset/50-eruption-audio-proxy.preset
-@rm $(TARGET_DIR)/lib/systemd/user/eruption-process-monitor.service
-@rm $(TARGET_DIR)/lib/systemd/user-preset/50-eruption-process-monitor.preset
-@rm $(TARGET_DIR)/lib/systemd/system/eruption-hotplug-helper.service
-@rm $(TARGET_DIR)/lib/systemd/system-preset/50-eruption-hotplug-helper.preset
-@rm $(TARGET_DIR)/lib/sysusers.d/eruption.conf
-@rm $(TARGET_DIR)/lib/udev/rules.d/99-eruption.rules
-@rm $(TARGET_DIR)/share/dbus-1/system-services/org.eruption.service
-@rm $(TARGET_DIR)/share/dbus-1/system.d/org.eruption.conf
-@rm $(TARGET_DIR)/share/dbus-1/session.d/org.eruption.process_monitor.conf
-@rm $(TARGET_DIR)/share/dbus-1/session.d/org.eruption.fx_proxy.conf
-@rm $(TARGET_DIR)/share/polkit-1/actions/org.eruption.policy
-@rm $(TARGET_DIR)/share/polkit-1/rules.d/org.eruption.rules
-@rm $(TARGET_DIR)/share/man/man8/eruption.8
-@rm $(TARGET_DIR)/share/man/man8/eruption-cmd.8
-@rm $(TARGET_DIR)/share/man/man5/eruption.conf.5
-@rm $(TARGET_DIR)/share/man/man5/process-monitor.conf.5
# -@rm $(TARGET_DIR)/share/man/man1/pyroclasm.1
-@rm $(TARGET_DIR)/share/man/man1/eruptionctl.1
-@rm $(TARGET_DIR)/share/man/man8/eruption-hwutil.8
-@rm $(TARGET_DIR)/share/man/man1/eruption-netfx.1
-@rm $(TARGET_DIR)/share/man/man1/eruption-macro.1
-@rm $(TARGET_DIR)/share/man/man1/eruption-keymap.1
-@rm $(TARGET_DIR)/share/man/man1/eruption-fx-proxy.1
-@rm $(TARGET_DIR)/share/man/man1/eruption-audio-proxy.1
-@rm $(TARGET_DIR)/share/man/man1/eruption-process-monitor.1
-@rm $(TARGET_DIR)/share/bash-completion/completions/eruption-cmd
-@rm $(TARGET_DIR)/share/bash-completion/completions/eruption-hwutil
-@rm $(TARGET_DIR)/share/bash-completion/completions/eruption-debug-tool
-@rm $(TARGET_DIR)/share/bash-completion/completions/eruption-macro
-@rm $(TARGET_DIR)/share/bash-completion/completions/eruption-keymap
-@rm $(TARGET_DIR)/share/bash-completion/completions/eruption-netfx
-@rm $(TARGET_DIR)/share/bash-completion/completions/eruption-fx-proxy
-@rm $(TARGET_DIR)/share/bash-completion/completions/eruption-audio-proxy
-@rm $(TARGET_DIR)/share/bash-completion/completions/eruption-process-monitor
-@rm $(TARGET_DIR)/share/bash-completion/completions/eruptionctl
# -@rm $(TARGET_DIR)/share/bash-completion/completions/pyroclasm
-@rm $(TARGET_DIR)/share/fish/completions/eruption-cmd.fish
-@rm $(TARGET_DIR)/share/fish/completions/eruption-hwutil.fish
-@rm $(TARGET_DIR)/share/fish/completions/eruption-debug-tool.fish
-@rm $(TARGET_DIR)/share/fish/completions/eruption-macro.fish
-@rm $(TARGET_DIR)/share/fish/completions/eruption-keymap.fish
-@rm $(TARGET_DIR)/share/fish/completions/eruption-netfx.fish
-@rm $(TARGET_DIR)/share/fish/completions/eruption-fx-proxy.fish
-@rm $(TARGET_DIR)/share/fish/completions/eruption-audio-proxy.fish
-@rm $(TARGET_DIR)/share/fish/completions/eruption-process-monitor.fish
-@rm $(TARGET_DIR)/share/fish/completions/eruptionctl.fish
# -@rm $(TARGET_DIR)/share/fish/completions/pyroclasm.fish
-@rm $(TARGET_DIR)/share/zsh/site-functions/_eruption-cmd
-@rm $(TARGET_DIR)/share/zsh/site-functions/_eruption-hwutil
-@rm $(TARGET_DIR)/share/zsh/site-functions/_eruption-debug-tool
-@rm $(TARGET_DIR)/share/zsh/site-functions/_eruption-macro
-@rm $(TARGET_DIR)/share/zsh/site-functions/_eruption-keymap
-@rm $(TARGET_DIR)/share/zsh/site-functions/_eruption-netfx
-@rm $(TARGET_DIR)/share/zsh/site-functions/_eruption-fx-proxy
-@rm $(TARGET_DIR)/share/zsh/site-functions/_eruption-audio-proxy
-@rm $(TARGET_DIR)/share/zsh/site-functions/_eruption-process-monitor
-@rm $(TARGET_DIR)/share/zsh/site-functions/_eruptionctl
# -@rm $(TARGET_DIR)/share/zsh/site-functions/_pyroclasm
-@rm $(TARGET_DIR)/share/eruption/sfx/typewriter1.wav
-@rm $(TARGET_DIR)/share/eruption/sfx/phaser1.wav
-@rm $(TARGET_DIR)/share/eruption/sfx/phaser2.wav
-@rm /etc/profile.d/eruption.sh
-@rm /etc/modules-load.d/eruption.conf
-@rm -fr /etc/eruption
-@rm -fr $(TARGET_DIR)/share/eruption
-@rm -fr $(TARGET_DIR)/share/eruption-gui-gtk3
-@rm -fr /var/lib/eruption
-@systemctl daemon-reload
-@systemctl reload dbus.service
-@systemctl reload systemd-udevd
-@systemctl start systemd-sysusers.service
@echo ""
@echo "Successfully uninstalled Eruption!"
check:
@cargo check
clean:
@cargo clean
test:
@cargo test
.PHONY: check clean all start stop install uninstall build test