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
@@ -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:
  @echo dwm build options:
@@ -29,9 +29,13 @@ dwm: ${OBJ}
  @echo CC -o $@
  @${CC} -o $@ ${OBJ} ${LDFLAGS}

+transient:
+ @echo CC -o $@
+ @${CC} -o $@ transient.c -lX11
+
 clean:
  @echo cleaning
- @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
+ @rm -f dwm transient ${OBJ} dwm-${VERSION}.tar.gz

 dist: clean
  @echo creating dist tarball
@@ -43,18 +47,23 @@ dist: clean
  @rm -rf dwm-${VERSION}

 install: all
- @echo installing executable file to ${DESTDIR}${PREFIX}/bin
+ @echo installing dwm executable file to ${DESTDIR}${PREFIX}/bin
  @mkdir -p ${DESTDIR}${PREFIX}/bin
  @cp -f dwm ${DESTDIR}${PREFIX}/bin
  @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
+ @echo installing dwm executable file to ${DESTDIR}${PREFIX}/bin
+ @cp -f transient ${DESTDIR}${PREFIX}/bin
+ @chmod 755 ${DESTDIR}${PREFIX}/bin/transient
  @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
  @mkdir -p ${DESTDIR}${MANPREFIX}/man1
  @sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
  @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1

 uninstall:
- @echo removing executable file from ${DESTDIR}${PREFIX}/bin
+ @echo removing dwm executable file from ${DESTDIR}${PREFIX}/bin
  @rm -f ${DESTDIR}${PREFIX}/bin/dwm
+ @echo removing transient executable file from ${DESTDIR}${PREFIX}/bin
+ @rm -f ${DESTDIR}${PREFIX}/bin/transient
  @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
  @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
@@ -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>

Reply via email to