meillo@759: # aewl - a fork of dwm, the dynamic window manager arg@741: # (C)opyright MMVI-MMVII Anselm R. Garbe garbeam@0: garbeam@0: include config.mk garbeam@0: garbeam@0: meillo@759: all: options aewl garbeam@0: garbeam@91: options: meillo@759: @echo aewl build options: garbeam@1: @echo "CFLAGS = ${CFLAGS}" garbeam@1: @echo "LDFLAGS = ${LDFLAGS}" garbeam@1: @echo "CC = ${CC}" garbeam@1: meillo@759: aewl.o: aewl.c config.h config.mk garbeam@0: @echo CC $< garbeam@0: @${CC} -c ${CFLAGS} $< garbeam@0: meillo@759: aewl: aewl.o arg@729: @echo CC -o $@ meillo@759: @${CC} -o $@ aewl.o ${LDFLAGS} arg@204: @strip $@ garbeam@0: garbeam@0: clean: arg@180: @echo cleaning meillo@759: @rm -f aewl *.o aewl-*.tar.gz garbeam@1: garbeam@1: dist: clean arg@180: @echo creating dist tarball meillo@759: @mkdir -p aewl-${VERSION} meillo@759: @cp -R LICENSE Makefile README config.h config.mk \ meillo@759: aewl.1 aewl.h ${SRC} aewl-${VERSION} meillo@759: @tar -cf aewl-${VERSION}.tar aewl-${VERSION} meillo@759: @gzip aewl-${VERSION}.tar meillo@759: @rm -rf aewl-${VERSION} garbeam@1: garbeam@1: install: all arg@180: @echo installing executable file to ${DESTDIR}${PREFIX}/bin garbeam@1: @mkdir -p ${DESTDIR}${PREFIX}/bin meillo@759: @cp -f aewl ${DESTDIR}${PREFIX}/bin meillo@759: @chmod 755 ${DESTDIR}${PREFIX}/bin/aewl arg@180: @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 garbeam@1: @mkdir -p ${DESTDIR}${MANPREFIX}/man1 meillo@775: @cp -f aewl.1 ${DESTDIR}${MANPREFIX}/man1 meillo@759: @chmod 644 ${DESTDIR}${MANPREFIX}/man1/aewl.1 garbeam@1: garbeam@1: uninstall: arg@180: @echo removing executable file from ${DESTDIR}${PREFIX}/bin meillo@759: @rm -f ${DESTDIR}${PREFIX}/bin/aewl arg@180: @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 meillo@759: @rm -f ${DESTDIR}${MANPREFIX}/man1/aewl.1 arg@174: arg@174: .PHONY: all options clean dist install uninstall