aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorAli Rizvi <[email protected]>2023-10-14 17:30:17 -0400
committerGitHub <[email protected]>2023-10-14 22:30:17 +0100
commit261c594458fec8bc64136eebf7c7e4e5ab421907 (patch)
tree5e8ebd7a8a34d671940ecb307fda10a36c0bff26 /Makefile
parent962a0de01ad4d8f9f84a2283c2c3c749395d450d (diff)
downloadHyprland-261c594458fec8bc64136eebf7c7e4e5ab421907.tar.gz
Hyprland-261c594458fec8bc64136eebf7c7e4e5ab421907.zip
makefile: fix using `-d` test for a binary file AND re-add missing portals conf (#3570)
* fix: Makefile test modified: src/Makefile * add: hyprland-portals.conf cp to Makefile modified: src/Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 095c699c..dc7f7329 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ all:
$(MAKE) release
install:
- @if [ ! -d ./build/Hyprland ]; then echo -en "You need to run $(MAKE) all first.\n" && exit 1; fi
+ @if [ ! -f ./build/Hyprland ]; then echo -en "You need to run $(MAKE) all first.\n" && exit 1; fi
@echo -en "!NOTE: Please note make install does not compile Hyprland and only installs the already built files."
mkdir -p ${PREFIX}/share/wayland-sessions
@@ -43,6 +43,8 @@ install:
if [ ! -f ${PREFIX}/share/wayland-sessions/hyprland.desktop ]; then cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions; fi
mkdir -p ${PREFIX}/share/hyprland
cp ./assets/wall_* ${PREFIX}/share/hyprland
+ mkdir -p ${PREFIX}/share/xdg-desktop-portal
+ cp ./assets/hyprland-portals.conf ${PREFIX}/share/xdg-desktop-portal
mkdir -p ${PREFIX}/share/man/man1
install -m644 ./docs/*.1 ${PREFIX}/share/man/man1
@@ -66,7 +68,7 @@ pluginenv:
@exit 1
installheaders:
- @if [ ! -d ./build/Hyprland ]; then echo -en "You need to run $(MAKE) all first.\n" && exit 1; fi
+ @if [ ! -f ./build/Hyprland ]; then echo -en "You need to run $(MAKE) all first.\n" && exit 1; fi
mkdir -p ${PREFIX}/include/hyprland
mkdir -p ${PREFIX}/include/hyprland/protocols