From 3c43f8212255e7b5f7a9da4f5868cb5af25b0f32 Mon Sep 17 00:00:00 2001 From: zjeffer <4633209+zjeffer@users.noreply.github.com> Date: Sun, 4 Jun 2023 22:15:56 +0200 Subject: [PATCH] chore: make install dir before copying --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a43bc3c..21b28e7 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,8 @@ COMPILE_FLAGS+=-Iinclude COMPILE_DEFINES=-DWLR_USE_UNSTABLE +INSTALL_LOCATION=${HOME}/.local/share/hyprload/plugins/bin + ifeq ($(shell whereis -b jq), "jq:") $(error "jq not found. Please install jq.") else @@ -26,7 +28,8 @@ endif 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 \