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

From: Christopher Drelich <cd_AT_cdrakka.com>
Date: Wed, 2 May 2018 18:52:10 -0400

Added transient to the Makefile. This could be handled in slightly
different ways, so if should just be "make transient" and not part of
things like "make all" let me know and I will redo the patch.

---
diff --git a/Makefile b/Makefile
index 9d220c5..d34bb30 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -7,7 +7,7 @@ include config.mk
 SRC = drw.c dwm.c util.c
 OBJ = ${SRC:.c=.o}
-all: options dwm
+all: options dwm transient
 options:
  _AT_echo dwm build options:
_AT_@ -29,9 +29,13 @@ dwm: ${OBJ}
  _AT_echo CC -o $@
  _AT_${CC} -o $@ ${OBJ} ${LDFLAGS}
+transient:
+ _AT_echo CC -o $@
+ _AT_${CC} -o $@ transient.c -lX11
+
 clean:
  _AT_echo cleaning
- _AT_rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
+ _AT_rm -f dwm transient ${OBJ} dwm-${VERSION}.tar.gz
 dist: clean
  _AT_echo creating dist tarball
_AT_@ -43,18 +47,23 @@ dist: clean
  _AT_rm -rf dwm-${VERSION}
 install: all
- _AT_echo installing executable file to ${DESTDIR}${PREFIX}/bin
+ _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 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 executable file from ${DESTDIR}${PREFIX}/bin
+ _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 manual page from ${DESTDIR}${MANPREFIX}/man1
  _AT_rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1
diff --git a/transient.c b/transient.c
index b1881a8..fb0ca6d 100644
--- a/transient.c
+++ b/transient.c
_AT_@ -1,7 +1,5 @@
 /* See LICENSE file for copyright and license details. */
-/* cc transient.c -o transient -lX11 */
-
 #include <stdlib.h>
 #include <unistd.h>
 #include <X11/Xlib.h>
Received on Thu May 03 2018 - 00:52:10 CEST

This archive was generated by hypermail 2.3.0 : Thu May 03 2018 - 01:00:37 CEST