Tanks to Leonardo Taccari for this patch. The -D option of install has a
different meaning in BSD, so we avoid it here.
@$(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