From 2f16368bd9e38065678db656072de2fe6b796365 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sat, 9 May 2020 14:46:45 +0200 Subject: [PATCH] Makefile: respect standard prefix= variable --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c06e656..eccb9bc 100644 --- a/Makefile +++ b/Makefile @@ -30,9 +30,10 @@ CFLAGS += -Wabi -Wcast-qual -Wfloat-equal -Wmissing-declarations \ -Wno-missing-braces -Wno-sign-compare -Wno-multichar endif -BINDIR=/usr/bin -MANDIR=/usr/share/man/man8 -BASHDIR=/usr/share/bash-completion/completions +prefix=/usr +BINDIR=$(prefix)/bin +MANDIR=$(prefix)/share/man/man8 +BASHDIR=$(prefix)/share/bash-completion/completions powerstat: powerstat.o $(CC) $(CFLAGS) $< -lm -o $@ $(LDFLAGS) -- 2.26.2