Blame patches/tree-2.0.1.local.patch

2dbac0
diff -ru tree-2.0.1.orig/Makefile tree-2.0.1/Makefile
2dbac0
--- tree-2.0.1.orig/Makefile	2022-01-03 20:11:10.000000000 +0100
2dbac0
+++ tree-2.0.1/Makefile	2022-02-06 10:15:01.067413455 +0100
2dbac0
@@ -23,17 +23,18 @@
2dbac0
 
2dbac0
 VERSION=2.0.1
2dbac0
 TREE_DEST=tree
2dbac0
-DESTDIR=${PREFIX}/bin
2dbac0
+DESTDIR=${DESTDIR}
2dbac0
+BINDIR=${DESTDIR}${PREFIX}/bin
2dbac0
 MAN=tree.1
2dbac0
-MANDIR=${PREFIX}/man
2dbac0
+MANDIR=${DESTDIR}${PREFIX}/man
2dbac0
 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
2dbac0
 
2dbac0
 # Uncomment options below for your particular OS:
2dbac0
 
2dbac0
 # Linux defaults:
2dbac0
 #CFLAGS=-ggdb -pedantic -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
2dbac0
-CFLAGS=-O3 -pedantic -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
2dbac0
-LDFLAGS=-s
2dbac0
+#CFLAGS=-O3 -pedantic -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
2dbac0
+#LDFLAGS=-s
2dbac0
 
2dbac0
 # Uncomment for FreeBSD:
2dbac0
 #CC=cc
2dbac0
@@ -104,7 +105,7 @@
2dbac0
 install: tree
2dbac0
 	$(INSTALL) -d $(DESTDIR)
2dbac0
 	$(INSTALL) -d $(MANDIR)/man1
2dbac0
-	$(INSTALL) $(TREE_DEST) $(DESTDIR)/$(TREE_DEST); \
2dbac0
+	$(INSTALL) $(TREE_DEST) $(BINDIR)/$(TREE_DEST); \
2dbac0
 	$(INSTALL) -m 644 doc/$(MAN) $(MANDIR)/man1/$(MAN)
2dbac0
 
2dbac0
 distclean: