From: Sebastian Humenda <shumenda@gmx.de>
Date: Tue, 18 May 2021 08:06:52 +0200
Subject: [PATCH] Fix upstream makefile

The makefile does not create all directories as required. In addition, variables are set using '=`
instead of `?=`, hindering `dh_auto_install` to work properly.

Index: ansifilter/makefile
===================================================================
--- ansifilter.orig/makefile
+++ ansifilter/makefile
@@ -4,10 +4,10 @@
 # Installation directories:
 
 # Destination directory for installation (intended for packagers)
-DESTDIR = 
+DESTDIR ?= 
 
 # Root directory for final installation
-PREFIX = /usr
+PREFIX ?= /usr
 
 # Location of the binary:
 bin_dir = ${PREFIX}/bin/
@@ -66,6 +66,7 @@ install:
 	@echo "Do not hesitate to report problems. Unknown bugs are hard to fix."
 	
 install-gui:
+	${MKDIR} ${DESTDIR}${bin_dir}
 	${INSTALL_PROGRAM} ./src/qt-gui/ansifilter-gui ${DESTDIR}${bin_dir}
 	${MKDIR} ${DESTDIR}${desktop_apps} \
 		${DESTDIR}${desktop_pixmaps}
