aboutsummaryrefslogtreecommitdiffstats
path: root/gadgets/Makefile
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-20 09:30:48 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-20 09:30:48 +0000
commite433da722fde36fd522013704ffca886121e61a6 (patch)
treee4815d68a80c7d18eb570fc3921053921f48f1d5 /gadgets/Makefile
parent32039df0be3c299ee7f77b3e37956e3b331ebba4 (diff)
downloaddzen-e433da722fde36fd522013704ffca886121e61a6.tar.gz
dzen-e433da722fde36fd522013704ffca886121e61a6.zip
added textwidth gadget
git-svn-id: http://dzen.googlecode.com/svn/trunk@139 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'gadgets/Makefile')
-rw-r--r--gadgets/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/gadgets/Makefile b/gadgets/Makefile
index db0cc74..b73e756 100644
--- a/gadgets/Makefile
+++ b/gadgets/Makefile
@@ -3,10 +3,10 @@
include config.mk
-SRC = dbar.c
+SRC = dbar.c textwidth.c
OBJ = ${SRC:.c=.o}
-all: options dbar
+all: options dbar textwidth
options:
@echo dzen2 gadgets build options:
@@ -23,21 +23,31 @@ ${OBJ}: config.mk
dbar: ${OBJ}
@echo LD $@
- @${LD} -o $@ ${OBJ} ${LDFLAGS}
+ @${LD} -o $@ dbar.o ${LDFLAGS}
+ @strip $@
+
+textwidth: ${OBJ}
+ @echo LD $@
+ @${LD} -o $@ textwidth.o ${LDFLAGS} -L${X11LIB} -lX11
@strip $@
clean:
@echo cleaning
@rm -f ${OBJ} dbar
+ @rm -f ${OBJ} textwidth
install: all
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f dbar ${DESTDIR}${PREFIX}/bin
@chmod 755 ${DESTDIR}${PREFIX}/bin/dbar
+ @mkdir -p ${DESTDIR}${PREFIX}/textwidth
+ @cp -f textwidth ${DESTDIR}${PREFIX}/bin
+ @chmod 755 ${DESTDIR}${PREFIX}/bin/textwidth
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
@rm -f ${DESTDIR}${PREFIX}/bin/dbar
+ @rm -f ${DESTDIR}${PREFIX}/bin/textwidth
.PHONY: all options clean install uninstall