From 3b827a14b6eab62c3a7bf1eb6f041c68bca1abba Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 20 Mar 2022 17:06:37 +0100 Subject: [PATCH] added make commands --- .gitignore | 4 +++- Makefile | 12 ++++++++++++ example/hyprland.desktop | 5 +++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 example/hyprland.desktop diff --git a/.gitignore b/.gitignore index 2d64ee6a..f45eb5bb 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,6 @@ build/ *.o *-protocol.c *-protocol.h -.ccls-cache \ No newline at end of file +.ccls-cache + +hyprctl/hyprctl \ No newline at end of file diff --git a/Makefile b/Makefile index 2b42ce4b..37cf377d 100644 --- a/Makefile +++ b/Makefile @@ -50,5 +50,17 @@ debug: clear: rm -rf build rm -f *.o *-protocol.h *-protocol.c + rm -f ./hyprctl/hyprctl + +all: + make config + make release + cd ./hyprctl && make all && cd .. + +install: + make all + sudo cp ./example/hyprland.desktop /usr/share/wayland-sessions/ + sudo cp ./build/Hyprland /usr/bin + sudo cp ./hyprctl/hyprctl /usr/bin config: xdg-shell-protocol.o wlr-layer-shell-unstable-v1-protocol.o idle-protocol.o diff --git a/example/hyprland.desktop b/example/hyprland.desktop new file mode 100644 index 00000000..57ad076f --- /dev/null +++ b/example/hyprland.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=Hyprland +Comment=An intelligent dynamic tiling Wayland compositor +Exec=Hyprland +Type=Application \ No newline at end of file