From 8cedf9c41352ca46647290fbe911bf19d83a8f60 Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Mon, 15 Jun 2015 15:44:26 +0200
Subject: [PATCH] Fixed Makefile install target using -D.

Tanks to Leonardo Taccari for this patch. The -D option of install has a
different meaning in BSD, so we avoid it here.
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 924e1b7..e21743e 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,8 @@ clean:
 	@$(MAKE) $(MFLAGS) -C tests clean
 
 install: $(TARGET) $(DOCDIR)/$(MAN1)
-	install -D -m 755 $(SRCDIR)/$(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
+	install -d $(DESTDIR)$(BINDIR)
+	install -m 755 $(SRCDIR)/$(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
 	install -d $(DESTDIR)$(EXAMPLEDIR)
 	cp -r examples/* $(DESTDIR)$(EXAMPLEDIR)
 	install -d $(DESTDIR)$(MANDIR)/man1
-- 
2.20.1