garbeam@34: # dwm - dynamic window manager arg@741: # (C)opyright MMVI-MMVII Anselm R. Garbe garbeam@0: garbeam@0: include config.mk garbeam@0: garbeam@0: garbeam@91: all: options dwm 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: meillo@754: dwm.o: dwm.c config.h config.mk garbeam@0: @echo CC $< garbeam@0: @${CC} -c ${CFLAGS} $< garbeam@0: meillo@754: dwm: dwm.o arg@729: @echo CC -o $@ meillo@754: @${CC} -o $@ dwm.o ${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@213: @sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 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