garbeam@0: # gridwm - grid window manager garbeam@0: # (C)opyright MMVI Anselm R. Garbe garbeam@0: garbeam@0: include config.mk garbeam@0: garbeam@32: SRC = client.c draw.c event.c kb.c mouse.c util.c wm.c garbeam@32: OBJ = ${SRC:.c=.o} garbeam@32: MAN1 = gridwm.1 garbeam@32: BIN = gridwm garbeam@0: garbeam@32: all: config gridwm garbeam@0: @echo finished garbeam@0: garbeam@1: config: garbeam@1: @echo gridwm build options: garbeam@1: @echo "LIBS = ${LIBS}" garbeam@1: @echo "CFLAGS = ${CFLAGS}" garbeam@1: @echo "LDFLAGS = ${LDFLAGS}" garbeam@1: @echo "CC = ${CC}" garbeam@1: garbeam@0: .c.o: garbeam@0: @echo CC $< garbeam@0: @${CC} -c ${CFLAGS} $< garbeam@0: garbeam@32: ${OBJ}: wm.h garbeam@3: garbeam@32: gridwm: ${OBJ} garbeam@3: @echo LD $@ garbeam@32: @${CC} -o $@ ${OBJ} ${LDFLAGS} garbeam@0: garbeam@0: clean: garbeam@32: rm -f gridwm *.o core garbeam@1: garbeam@1: dist: clean garbeam@1: mkdir -p gridwm-${VERSION} garbeam@3: cp -R Makefile README LICENSE config.mk *.h *.c ${MAN} gridwm-${VERSION} garbeam@1: tar -cf gridwm-${VERSION}.tar gridwm-${VERSION} garbeam@1: gzip gridwm-${VERSION}.tar garbeam@1: rm -rf gridwm-${VERSION} garbeam@1: garbeam@1: install: all garbeam@1: @mkdir -p ${DESTDIR}${PREFIX}/bin garbeam@1: @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin garbeam@1: @echo installed executable files to ${DESTDIR}${PREFIX}/bin garbeam@1: @mkdir -p ${DESTDIR}${MANPREFIX}/man1 garbeam@1: @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 garbeam@1: @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1 garbeam@1: garbeam@1: uninstall: garbeam@1: for i in ${BIN}; do \ garbeam@1: rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ garbeam@1: done garbeam@1: for i in ${MAN1}; do \ garbeam@1: rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ garbeam@1: done