]> git.cameronkatri.com Git - trustcache.git/commitdiff
Add DESTDIR support
authorCameron Katri <me@cameronkatri.com>
Wed, 1 Jun 2022 14:17:26 +0000 (10:17 -0400)
committerCameron Katri <me@cameronkatri.com>
Wed, 1 Jun 2022 14:17:26 +0000 (10:17 -0400)
Makefile

index a4cb8f937be1f0c262c6a36d463fcca605d4bc93..7eeb0dbbedeed4b9e87bf062295cf54ec2dd426f 100644 (file)
--- 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