From dbf7e03996032a6def3b8e97468b78d6da9e8c88 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 10 Jul 2006 16:49:43 +0200 Subject: added gridmenu --- Makefile | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fff5ee1..6d853bd 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,21 @@ include config.mk -SRC = wm.c -OBJ = ${SRC:.c=.o} +SRC = wm.c +OBJ = ${SRC:.c=.o} +MAN = gridwm.1 +BIN = gridwm gridmenu -all: gridwm +all: config gridwm @echo finished +config: + @echo gridwm build options: + @echo "LIBS = ${LIBS}" + @echo "CFLAGS = ${CFLAGS}" + @echo "LDFLAGS = ${LDFLAGS}" + @echo "CC = ${CC}" + .c.o: @echo CC $< @${CC} -c ${CFLAGS} $< @@ -21,3 +30,26 @@ gridwm: ${OBJ} clean: rm -f gridwm *.o + +dist: clean + mkdir -p gridwm-${VERSION} + cp -R Makefile README LICENSE config.mk ${SRC} ${MAN} gridwm-${VERSION} + tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} + gzip gridwm-${VERSION}.tar + rm -rf gridwm-${VERSION} + +install: all + @mkdir -p ${DESTDIR}${PREFIX}/bin + @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin + @echo installed executable files to ${DESTDIR}${PREFIX}/bin + @mkdir -p ${DESTDIR}${MANPREFIX}/man1 + @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 + @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1 + +uninstall: + for i in ${BIN}; do \ + rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ + done + for i in ${MAN1}; do \ + rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ + done -- cgit v1.2.3-54-g00ecf