makefile: warn users when doing sudo make install

This commit is contained in:
Vaxry 2023-10-14 18:58:23 +01:00
parent d4e4931008
commit 21b5cf402a

View file

@ -32,6 +32,7 @@ all:
install: install:
@if [ ! -d ./build/Hyprland ]; then echo -en "You need to run $(MAKE) all first.\n" && exit 1; fi @if [ ! -d ./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 mkdir -p ${PREFIX}/share/wayland-sessions
mkdir -p ${PREFIX}/bin mkdir -p ${PREFIX}/bin