diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-06-17 10:29:33 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-06-17 10:29:33 +0100 |
commit | b0a608b5385f53252de9508f250592880ef479e9 (patch) | |
tree | 2a4ebeb3ab756fb30ad0701fc67f1ca54b15b069 /Makefile | |
parent | 5fcac5aad79988fd242f475ef278278167a7cd33 (diff) | |
download | wmname-b0a608b5385f53252de9508f250592880ef479e9.tar.gz wmname-b0a608b5385f53252de9508f250592880ef479e9.zip |
updated
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -1,14 +1,14 @@ -# set wm name - sets the WM name +# wmname - prints/sets the WM name include config.mk -SRC = setwmname.c +SRC = wmname.c OBJ = ${SRC:.c=.o} -all: options setwmname +all: options wmname options: - @echo setwmname build options: + @echo wmname build options: @echo "CFLAGS = ${CFLAGS}" @echo "LDFLAGS = ${LDFLAGS}" @echo "CC = ${CC}" @@ -20,31 +20,31 @@ options: ${OBJ}: config.mk -setwmname: ${OBJ} +wmname: ${OBJ} @echo LD $@ @${LD} -o $@ ${OBJ} ${LDFLAGS} @strip $@ clean: @echo cleaning - @rm -f setwmname ${OBJ} setwmname-${VERSION}.tar.gz + @rm -f wmname ${OBJ} wmname-${VERSION}.tar.gz dist: clean @echo creating dist tarball - @mkdir -p setwmname-${VERSION} - @cp -R LICENSE Makefile README config.mk ${SRC} setwmname-${VERSION} - @tar -cf setwmname-${VERSION}.tar setwmname-${VERSION} - @gzip setwmname-${VERSION}.tar - @rm -rf setwmname-${VERSION} + @mkdir -p wmname-${VERSION} + @cp -R LICENSE Makefile README config.mk ${SRC} wmname-${VERSION} + @tar -cf wmname-${VERSION}.tar wmname-${VERSION} + @gzip wmname-${VERSION}.tar + @rm -rf wmname-${VERSION} install: all @echo installing executable file to ${DESTDIR}${PREFIX}/bin @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f setwmname ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/setwmname + @cp -f wmname ${DESTDIR}${PREFIX}/bin + @chmod 755 ${DESTDIR}${PREFIX}/bin/wmname uninstall: @echo removing executable file from ${DESTDIR}${PREFIX}/bin - @rm -f ${DESTDIR}${PREFIX}/bin/setwmname + @rm -f ${DESTDIR}${PREFIX}/bin/wmname .PHONY: all options clean dist install uninstall |