]> git.cameronkatri.com Git - trustcache.git/blobdiff - Makefile
Add DESTDIR support
[trustcache.git] / Makefile
index 364764d719321dc722aa510e910c24ac850d8a42..7eeb0dbbedeed4b9e87bf062295cf54ec2dd426f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,13 @@
 OBJS = tc.o
-OBJS += append.o create.o info.o
+OBJS += append.o create.o info.o remove.o
 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