garbeam@0: # gridwm - grid window manager garbeam@0: # (C)opyright MMVI Anselm R. Garbe garbeam@0: garbeam@0: include config.mk garbeam@0: garbeam@1: SRC = wm.c garbeam@1: OBJ = ${SRC:.c=.o} garbeam@1: MAN = gridwm.1 garbeam@1: BIN = gridwm gridmenu garbeam@0: garbeam@1: 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@0: ${OBJ}: wm.h garbeam@0: garbeam@0: gridwm: ${OBJ} garbeam@0: @echo LD $@ garbeam@0: @${CC} -o $@ ${OBJ} ${X11LDFLAGS} garbeam@0: garbeam@0: clean: garbeam@0: rm -f gridwm *.o garbeam@1: garbeam@1: dist: clean garbeam@1: mkdir -p gridwm-${VERSION} garbeam@1: cp -R Makefile README LICENSE config.mk ${SRC} ${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