715cb6
diff -ru tree-2.0.4.orig/Makefile tree-2.0.4/Makefile
715cb6
--- tree-2.0.4.orig/Makefile	2022-09-06 15:31:53.000000000 +0200
715cb6
+++ tree-2.0.4/Makefile	2022-09-10 22:06:29.081774574 +0200
f04a94
@@ -26,7 +26,7 @@
f04a94
 DESTDIR=${PREFIX}/bin
f04a94
 MAN=tree.1
f04a94
 # Probably needs to be ${PREFIX}/share/man for most systems now
f04a94
-MANDIR=${PREFIX}/man
f04a94
+MANDIR=${DESTDIR}${PREFIX}/man
f04a94
 OBJS=tree.o list.o hash.o color.o file.o filter.o info.o unix.o xml.o json.o html.o strverscmp.o
f04a94
 
f04a94
 # Uncomment options below for your particular OS:
715cb6
@@ -105,7 +105,7 @@
715cb6
 install: tree
715cb6
 	$(INSTALL) -d $(DESTDIR)
715cb6
 	$(INSTALL) -d $(MANDIR)/man1
715cb6
-	$(INSTALL) $(TREE_DEST) $(DESTDIR)/$(TREE_DEST); \
715cb6
+	$(INSTALL) $(TREE_DEST) $(DESTDIR)/bin/$(TREE_DEST); \
715cb6
 	$(INSTALL) -m 644 doc/$(MAN) $(MANDIR)/man1/$(MAN)
715cb6
 
715cb6
 distclean: