aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2022-06-01 10:17:26 -0400
committerCameron Katri <me@cameronkatri.com>2022-06-01 10:17:26 -0400
commit59b06ee63aa566ae7a3c4f6ca90e27e19d6d7226 (patch)
tree373ea7674960a0e8c7f37781a852ba16449906f3
parentca03488b6ff9c530e65c2ded169cb45383fa221f (diff)
downloadtrustcache-59b06ee63aa566ae7a3c4f6ca90e27e19d6d7226.tar.gz
trustcache-59b06ee63aa566ae7a3c4f6ca90e27e19d6d7226.tar.zst
trustcache-59b06ee63aa566ae7a3c4f6ca90e27e19d6d7226.zip
Add DESTDIR support
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a4cb8f9..7eeb0db 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,10 @@ OBJS += machoparse/cdhash.o cache_from_tree.o sort.o
OBJS += uuid/gen_uuid.o uuid/pack.o uuid/unpack.o uuid/parse.o uuid/unparse.o uuid/copy.o
OBJS += compat_strtonum.o
-PREFIX ?= ~/.local
-BINDIR ?= $(PREFIX)/bin
-MANDIR ?= $(PREFIX)/share/man
+DESTDIR ?=
+PREFIX ?= ~/.local
+BINDIR ?= $(DESTDIR)$(PREFIX)/bin
+MANDIR ?= $(DESTDIR)$(PREFIX)/share/man
ifeq ($(shell uname -s),Darwin)
COMMONCRYPTO ?= 1