From 4a6558258e6b51eb3cc3fa8b45edce466f4edde1 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 24 Mar 2024 23:23:31 +0100 Subject: [PATCH] Makefile: add support to DESTDIR Closes: #22 Signed-off-by: Anna (navi) Figueiredo Gomes --- Makefile | 4 ++-- src/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e614ede89..7adad46f5 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,9 @@ default: all .DEFAULT: - cd src && $(MAKE) $@ + $(MAKE) -C src $@ install: - cd src && $(MAKE) $@ + $(MAKE) -C src $@ .PHONY: install diff --git a/src/Makefile b/src/Makefile index 5759a8092..38810d2d7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -55,7 +55,7 @@ else endif PREFIX?=/usr/local -INSTALL_BIN=$(PREFIX)/bin +INSTALL_BIN=$(DESTDIR)$(PREFIX)/bin INSTALL=install PKG_CONFIG?=pkg-config