From 38e18b70777be4e8af45698b8c7bdbf3a04387a0 Mon Sep 17 00:00:00 2001 From: czadowanie <125468992+czadowanie@users.noreply.github.com> Date: Tue, 14 Nov 2023 14:52:08 +0100 Subject: [PATCH] fix: respect PREFIX in Makefile (#106) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 27bb974..3e02aec 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PREFIX = /usr/local +PREFIX ?= /usr CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement CFLAGS += -I. -DWLR_USE_UNSTABLE -std=c99 @@ -71,4 +71,4 @@ all: install: make all - cp ./build/hyprpaper /usr/bin -f \ No newline at end of file + cp ./build/hyprpaper $(PREFIX)/bin -f