[hackers] [wmii] Fix 9menu function, compile wmii9menu with 9menu.o instead of ${OBJ}, some minor 9menu.c modifications.

From: Kris Maglione <jg_AT_suckless.org>
Date: Mon Feb 26 10:47:00 2007

changeset: 1961:6640c156c3f5
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Feb 26 04:46:55 2007 -0500
summary: Fix 9menu function, compile wmii9menu with 9menu.o instead of ${OBJ}, some minor 9menu.c modifications.

diff -r 6b1217fd1152 -r 6640c156c3f5 Makefile
--- a/Makefile Mon Feb 26 04:27:03 2007 -0500
+++ b/Makefile Mon Feb 26 04:46:55 2007 -0500
@@ -37,9 +37,9 @@ wmiiwm: ${OBJ}
         @${CC} -o $@ ${OBJ} ${LDFLAGS}
 
 # XXX: This doesn't need libixp
-wmii9menu: 9menu.c
+wmii9menu: 9menu.o
         @echo LD $@
- @${CC} -o $@ ${OBJ} ${LDFLAGS}
+ @${CC} -o $@ 9menu.o ${LDFLAGS}
 
 clean:
         @echo cleaning
@@ -80,8 +80,7 @@ install: all
 
 uninstall:
         @echo removing executable files from ${DESTDIR}${PREFIX}/bin
- @cd ${DESTDIR}${PREFIX}/bin && rm -f ${SCRIPTS}
- @rm -f ${DESTDIR}${PREFIX}/bin/wmiiwm
+ @cd ${DESTDIR}${PREFIX}/bin && rm -f ${SCRIPTS} ${BIN}
         @echo removing scripts from ${DESTDIR}${CONFPREFIX}/wmii-${CONFVERSION}
         @rm -rf ${DESTDIR}${CONFPREFIX}/wmii-${CONFVERSION}
         @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
diff -r 6b1217fd1152 -r 6640c156c3f5 rc/rc.wmii
--- a/rc/rc.wmii Mon Feb 26 04:27:03 2007 -0500
+++ b/rc/rc.wmii Mon Feb 26 04:46:55 2007 -0500
@@ -24,7 +24,7 @@ fn wmiimenu {
 }
 
 fn 9menu {
- ./9menu -teleport -font $WMII_FONT \
+ wmii9menu -teleport -font $WMII_FONT \
                 -nf $WMII_NORMCOLORS(1) -nb $WMII_NORMCOLORS(2) \
                 -sf $WMII_FOCUSCOLORS(1) -sb $WMII_FOCUSCOLORS(2) \
                 -br $WMII_FOCUSCOLORS(3) $*
@@ -80,7 +80,6 @@ fn Event-LeftBarClick { shift; wmiir xwr
 fn Event-LeftBarClick { shift; wmiir xwrite /ctl view $* }
 fn Event-ClientMouseDown {
         client = $1; button = $2
- echo ClientMouseDown $*
         if(~ $button 3)
                 switch(`{9menu Delete Nop}) {
                 case Delete
Received on Mon Feb 26 2007 - 10:47:00 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:56 UTC