garbeam@34: # dwm - dynamic window manager garbeam@0: # (C)opyright MMVI Anselm R. Garbe garbeam@0: garbeam@0: include config.mk garbeam@0: garbeam@75: SRC = client.c draw.c event.c main.c tag.c util.c garbeam@32: OBJ = ${SRC:.c=.o} garbeam@0: garbeam@91: all: options dwm garbeam@0: @echo finished garbeam@0: garbeam@91: options: garbeam@34: @echo dwm build options: 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: arg@172: ${OBJ}: dwm.h config.h arg@172: arg@185: config.h: arg@186: @echo creating $@ from config.default.h arg@186: @cp config.default.h $@ garbeam@3: garbeam@34: dwm: ${OBJ} garbeam@3: @echo LD $@ garbeam@32: @${CC} -o $@ ${OBJ} ${LDFLAGS} arg@204: @strip $@ garbeam@0: garbeam@0: clean: arg@180: @echo cleaning arg@184: @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz garbeam@1: garbeam@1: dist: clean arg@180: @echo creating dist tarball arg@180: @mkdir -p dwm-${VERSION} arg@180: @cp -R LICENSE Makefile README config.*.h config.mk \ arg@180: dwm.1 dwm.h ${SRC} dwm-${VERSION} arg@180: @tar -cf dwm-${VERSION}.tar dwm-${VERSION} arg@180: @gzip dwm-${VERSION}.tar arg@180: @rm -rf dwm-${VERSION} garbeam@1: garbeam@1: install: all arg@180: @echo installing executable file to ${DESTDIR}${PREFIX}/bin garbeam@1: @mkdir -p ${DESTDIR}${PREFIX}/bin arg@180: @cp -f dwm ${DESTDIR}${PREFIX}/bin arg@180: @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm arg@180: @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 garbeam@1: @mkdir -p ${DESTDIR}${MANPREFIX}/man1 arg@180: @cp -f dwm.1 ${DESTDIR}${MANPREFIX}/man1 arg@180: @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 garbeam@1: garbeam@1: uninstall: arg@180: @echo removing executable file from ${DESTDIR}${PREFIX}/bin arg@180: @rm -f ${DESTDIR}${PREFIX}/bin/dwm arg@180: @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 arg@180: @rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1 arg@174: arg@174: .PHONY: all options clean dist install uninstall