aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix-build/fix-makefile.diff
blob: 036dafad0a54f028b4ea9355a41e419c0bdd633b (plain)
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
diff --git a/Makefile b/Makefile
index bcf3a10..0a5b335 100644
--- a/Makefile
+++ b/Makefile
@@ -97,14 +97,14 @@ all:

 install:
 	make all
-	mkdir -p /usr/share/wayland-sessions
-	cp ./example/hyprland.desktop /usr/share/wayland-sessions/
-	cp ./build/Hyprland /usr/bin
-	cp ./hyprctl/hyprctl /usr/bin
-	mkdir -p /usr/share/hyprland
-	cp ./assets/wall_2K.png /usr/share/hyprland
-	cp ./assets/wall_4K.png /usr/share/hyprland
-	cp ./assets/wall_8K.png /usr/share/hyprland
+	mkdir -p $(PREFIX)/share/wayland-sessions
+	cp ./example/hyprland.desktop $(PREFIX)/share/wayland-sessions/
+	cp ./build/Hyprland $(PREFIX)/bin
+	cp ./hyprctl/hyprctl $(PREFIX)/bin
+	mkdir -p $(PREFIX)/share/hyprland
+	cp ./assets/wall_2K.png $(PREFIX)/share/hyprland
+	cp ./assets/wall_4K.png $(PREFIX)/share/hyprland
+	cp ./assets/wall_8K.png $(PREFIX)/share/hyprland

 uninstall:
 	rm -f /usr/share/wayland-sessions/hyprland.desktop
diff --git a/config.mk b/config.mk
index 91aca81..c40930e 100644
--- a/config.mk
+++ b/config.mk
@@ -1,4 +1,4 @@
-PREFIX = /usr/local
+PREFIX = @out@
 CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement
 CFLAGS += -DXWAYLAND