--- Makefile.orig	2017-09-27 14:56:56.000000000 -0500
+++ Makefile	2021-04-13 16:05:55.000000000 -0500
@@ -1,6 +1,8 @@
 VERSION=`cat VERSION|grep VERSION=\"|cut -d '"' -f2`
-BINDIR=/usr/local/bin
-MANDIR=/usr/local/share/man/man1
+PREFIX=/usr/local
+BINDIR=${PREFIX}/bin
+MANDIR=${PREFIX}/share/man/man1
+SYSCONFDIR=${PREFIX}/etc
 SRC=dwarf
 TARGET=dwarf
 SRC_DIR=src
@@ -30,7 +32,7 @@
 	cp -p ${MANSRC} ${DESTDIR}${MANDIR}/${MANTARGET}
 	chmod 644 ${DESTDIR}${MANDIR}/${MANTARGET}
 	#if [ ! -f $(wildcard ~/.dwarfrc) ]; then echo ".." ; fi
-	if [ ! -f /etc/dwarfrc ]; then cp src/dwarfrc /etc/dwarfrc ; echo "to modify your dwarfrc make a copy on your local folder: cp /etc/dwarfrc ~/.dwarfrc" ; fi
+	if [ ! -f ${DESTDIR}${SYSCONFDIR}/dwarfrc ]; then cp src/dwarfrc ${DESTDIR}${SYSCONFDIR}/dwarfrc ; echo "to modify your dwarfrc make a copy on your local folder: cp ${SYSCONFDIR}/dwarfrc ~/.dwarfrc" ; fi
 	
 uninstall:
 	rm -f ${DESTDIR}${BINDIR}/${TARGET}
