From e727aed1971e932ffb55db46a893f2a0475be403 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Wed, 7 Jun 2023 00:00:04 +0200 Subject: [PATCH] Add INSTALL_LOCATION variable --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4ee6828..a9e41ca 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ PLUGIN_NAME=dwindle-autogroup +INSTALL_LOCATION=${HOME}/.local/share/hyprload/plugins/bin + SOURCE_FILES=$(wildcard src/*.cpp) COMPILE_FLAGS=-g -fPIC --no-gnu-unique -std=c++23 @@ -17,7 +19,8 @@ LINK_FLAGS=-shared all: check_env $(PLUGIN_NAME).so install: all - cp $(PLUGIN_NAME).so ${HOME}/.local/share/hyprload/plugins/bin + mkdir -p $(INSTALL_LOCATION) + cp $(PLUGIN_NAME).so $(INSTALL_LOCATION) check_env: @if ! pkg-config --exists hyprland; then \