aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-09-28 18:05:55 +0100
committervaxerski <[email protected]>2023-09-28 18:05:55 +0100
commit280f385cf8743456e0d205e40c8c7c439e8e6d1e (patch)
tree69a0e8cc9b5336844ad0d75317dd4e9908f6427f /Makefile
parent1f4eab176ef8978e022ea9367f9b7fb61273f163 (diff)
downloadHyprland-280f385cf8743456e0d205e40c8c7c439e8e6d1e.tar.gz
Hyprland-280f385cf8743456e0d205e40c8c7c439e8e6d1e.zip
makefile: fix permissions on files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 518df327..0f3fa398 100644
--- a/Makefile
+++ b/Makefile
@@ -3,18 +3,22 @@ PREFIX = /usr/local
legacyrenderer:
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DLEGACY_RENDERER:BOOL=true -S . -B ./build -G Ninja
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
+ chmod 711 ./build/Hyprland
legacyrendererdebug:
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DLEGACY_RENDERER:BOOL=true -S . -B ./build -G Ninja
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
+ chmod 711 ./build/Hyprland
release:
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build -G Ninja
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
+ chmod 711 ./build/Hyprland
debug:
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -S . -B ./build -G Ninja
cmake --build ./build --config Debug --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
+ chmod 711 ./build/Hyprland
clear:
rm -rf build
@@ -35,8 +39,11 @@ install:
$(MAKE) fixwlr
cd ./subprojects/wlroots && meson setup build/ --buildtype=release && ninja -C build/ && mkdir -p ${PREFIX}/lib/ && cp ./build/libwlroots.so.12032 ${PREFIX}/lib/ || echo "Could not install libwlroots to ${PREFIX}/lib/libwlroots.so.12032"
cd subprojects/udis86 && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B./build -G Ninja && cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF` && cd ../..
+ chmod -R 777 subprojects/udis86
+ chmod -R 777 subprojects/wlroots
$(MAKE) release
$(MAKE) -C hyprctl all
+ chmod 711 ./build/hyprctl/hyprctl
mkdir -p ${PREFIX}/share/wayland-sessions
mkdir -p ${PREFIX}/bin
@@ -89,8 +96,12 @@ config:
ninja -C subprojects/wlroots/build/ install
+ chmod -R 777 subprojects/wlroots
+
cd subprojects/udis86 && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build -G Ninja && cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
+ chmod -R 777 subprojects/udis86
+
pluginenv:
cd subprojects/udis86 && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build -G Ninja && cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`