[hackers] [dwm][PATCH] Added BINPREFIX to Makefile

From: Christopher Drelich <cd_AT_cdrakka.com>
Date: Wed, 2 May 2018 19:09:48 -0400

Replaced ${PREFIX} with ${BINPREFIX} in style of ${MANPREFIX}

---
diff --git a/Makefile b/Makefile
index d34bb30..ec37850 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -47,23 +47,23 @@ dist: clean
  _AT_rm -rf dwm-${VERSION}
 install: all
- _AT_echo installing dwm executable file to ${DESTDIR}${PREFIX}/bin
- _AT_mkdir -p ${DESTDIR}${PREFIX}/bin
- _AT_cp -f dwm ${DESTDIR}${PREFIX}/bin
- _AT_chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
- _AT_echo installing dwm executable file to ${DESTDIR}${PREFIX}/bin
- _AT_cp -f transient ${DESTDIR}${PREFIX}/bin
- _AT_chmod 755 ${DESTDIR}${PREFIX}/bin/transient
+ _AT_echo installing dwm executable file to ${DESTDIR}${BINPREFIX}
+ _AT_mkdir -p ${DESTDIR}${BINPREFIX}
+ _AT_cp -f dwm ${DESTDIR}${BINPREFIX}
+ _AT_chmod 755 ${DESTDIR}${BINPREFIX}/dwm
+ _AT_echo installing dwm executable file to ${DESTDIR}${BINPREFIX}
+ _AT_cp -f transient ${DESTDIR}${BINPREFIX}
+ _AT_chmod 755 ${DESTDIR}${BINPREFIX}/transient
  _AT_echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
  _AT_mkdir -p ${DESTDIR}${MANPREFIX}/man1
  _AT_sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
  _AT_chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
 uninstall:
- _AT_echo removing dwm executable file from ${DESTDIR}${PREFIX}/bin
- _AT_rm -f ${DESTDIR}${PREFIX}/bin/dwm
- _AT_echo removing transient executable file from ${DESTDIR}${PREFIX}/bin
- _AT_rm -f ${DESTDIR}${PREFIX}/bin/transient
+ _AT_echo removing dwm executable file from ${DESTDIR}${BINPREFIX}
+ _AT_rm -f ${DESTDIR}${BINPREFIX}/dwm
+ _AT_echo removing transient executable file from ${DESTDIR}${BINPREFIX}
+ _AT_rm -f ${DESTDIR}${BINPREFIX}/transient
  _AT_echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
  _AT_rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1
diff --git a/config.mk b/config.mk
index f285241..43ef6e1 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -7,6 +7,7 @@ VERSION = 6.1
 # paths
 PREFIX = /usr/local
+BINPREFIX = ${PREFIX}/bin
 MANPREFIX = ${PREFIX}/share/man
 X11INC = /usr/X11R6/include
Received on Thu May 03 2018 - 01:09:48 CEST

This archive was generated by hypermail 2.3.0 : Thu May 03 2018 - 01:12:30 CEST