mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:45:58 +01:00
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
This commit is contained in:
parent
962a0de01a
commit
261c594458
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -31,7 +31,7 @@ all:
|
||||||
$(MAKE) release
|
$(MAKE) release
|
||||||
|
|
||||||
install:
|
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."
|
@echo -en "!NOTE: Please note make install does not compile Hyprland and only installs the already built files."
|
||||||
|
|
||||||
mkdir -p ${PREFIX}/share/wayland-sessions
|
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
|
if [ ! -f ${PREFIX}/share/wayland-sessions/hyprland.desktop ]; then cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions; fi
|
||||||
mkdir -p ${PREFIX}/share/hyprland
|
mkdir -p ${PREFIX}/share/hyprland
|
||||||
cp ./assets/wall_* ${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
|
mkdir -p ${PREFIX}/share/man/man1
|
||||||
install -m644 ./docs/*.1 ${PREFIX}/share/man/man1
|
install -m644 ./docs/*.1 ${PREFIX}/share/man/man1
|
||||||
|
@ -66,7 +68,7 @@ pluginenv:
|
||||||
@exit 1
|
@exit 1
|
||||||
|
|
||||||
installheaders:
|
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
|
||||||
mkdir -p ${PREFIX}/include/hyprland/protocols
|
mkdir -p ${PREFIX}/include/hyprland/protocols
|
||||||
|
|
Loading…
Reference in a new issue