forked from dawsers/hyprscroller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 784 Bytes
/
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
.PHONY: all debug release clean install dev
debug:
cmake -B ./Debug -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=$(PREFIX)
cmake --build ./Debug -j
rm -rf ./compile_commands.json
rm -rf ./hyprscroller.so
ln -s ./Debug/compile_commands.json .
ln -s ./Debug/hyprscroller.so .
release:
cmake -B ./Release -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$(PREFIX)
cmake --build ./Release -j
rm -rf ./compile_commands.json
rm -rf ./hyprscroller.so
ln -s ./Release/compile_commands.json .
ln -s ./Release/hyprscroller.so .
all: clean release
clean:
rm -rf Release
rm -rf Debug
rm -rf ./hyprscroller.so
rm -rf ./compile_commands.json
install: release
mkdir -p `xdg-user-dir`/.config/hypr/plugins
cp hyprscroller.so `xdg-user-dir`/.config/hypr/plugins
dev: clean debug