From 700eb9e3d89e59dba8c0a2c8327990edb6991d50 Mon Sep 17 00:00:00 2001
From: Francois Fleuret <francois@fleuret.org>
Date: Mon, 27 Aug 2018 07:56:04 +0200
Subject: [PATCH] Now installs in /usr/local/

---
 Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 7af163a..fc6b97b 100644
--- a/Makefile
+++ b/Makefile
@@ -21,8 +21,8 @@
 #  along with finddup.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-BINARY_PATH = $(DESTDIR)/usr/bin
-MAN_PATH = $(DESTDIR)/usr/share/man/man1
+BINARY_PATH = $(DESTDIR)/usr/local/bin
+MAN_PATH = $(DESTDIR)/usr/local/share/man/man1
 
 ifeq ($(WITH_MD5),yes)
   LDFLAGS=-lssl
@@ -48,6 +48,7 @@ finddup: finddup.o
 	$(CC) -o $@ $^ $(LDFLAGS)
 
 install: finddup
+	mkdir -p $(BINARY_PATH) $(MAN_PATH)
 	install -m 755 finddup $(BINARY_PATH)
 	install -m 644 finddup.1 $(MAN_PATH)
 	gzip $(MAN_PATH)/finddup.1
-- 
2.39.5