diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-07-20 09:30:48 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-07-20 09:30:48 +0000 |
commit | e433da722fde36fd522013704ffca886121e61a6 (patch) | |
tree | e4815d68a80c7d18eb570fc3921053921f48f1d5 /gadgets/Makefile | |
parent | 32039df0be3c299ee7f77b3e37956e3b331ebba4 (diff) | |
download | dzen-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/Makefile | 16 |
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 |