aewl
annotate Makefile @ 765:f1d4bc4afcd9
why is config.h not versioned ... it should be. Now it is
author | meillo@marmaro.de |
---|---|
date | Fri, 05 Dec 2008 19:13:24 +0100 |
parents | 427608ef0687 |
children | 794a83e74023 |
rev | line source |
---|---|
meillo@759 | 1 # aewl - a fork of dwm, the dynamic window manager |
arg@741 | 2 # (C)opyright MMVI-MMVII Anselm R. Garbe |
garbeam@0 | 3 |
garbeam@0 | 4 include config.mk |
garbeam@0 | 5 |
garbeam@0 | 6 |
meillo@759 | 7 all: options aewl |
garbeam@0 | 8 |
garbeam@91 | 9 options: |
meillo@759 | 10 @echo aewl build options: |
garbeam@1 | 11 @echo "CFLAGS = ${CFLAGS}" |
garbeam@1 | 12 @echo "LDFLAGS = ${LDFLAGS}" |
garbeam@1 | 13 @echo "CC = ${CC}" |
garbeam@1 | 14 |
meillo@759 | 15 aewl.o: aewl.c config.h config.mk |
garbeam@0 | 16 @echo CC $< |
garbeam@0 | 17 @${CC} -c ${CFLAGS} $< |
garbeam@0 | 18 |
meillo@759 | 19 aewl: aewl.o |
arg@729 | 20 @echo CC -o $@ |
meillo@759 | 21 @${CC} -o $@ aewl.o ${LDFLAGS} |
arg@204 | 22 @strip $@ |
garbeam@0 | 23 |
garbeam@0 | 24 clean: |
arg@180 | 25 @echo cleaning |
meillo@759 | 26 @rm -f aewl *.o aewl-*.tar.gz |
garbeam@1 | 27 |
garbeam@1 | 28 dist: clean |
arg@180 | 29 @echo creating dist tarball |
meillo@759 | 30 @mkdir -p aewl-${VERSION} |
meillo@759 | 31 @cp -R LICENSE Makefile README config.h config.mk \ |
meillo@759 | 32 aewl.1 aewl.h ${SRC} aewl-${VERSION} |
meillo@759 | 33 @tar -cf aewl-${VERSION}.tar aewl-${VERSION} |
meillo@759 | 34 @gzip aewl-${VERSION}.tar |
meillo@759 | 35 @rm -rf aewl-${VERSION} |
garbeam@1 | 36 |
garbeam@1 | 37 install: all |
arg@180 | 38 @echo installing executable file to ${DESTDIR}${PREFIX}/bin |
garbeam@1 | 39 @mkdir -p ${DESTDIR}${PREFIX}/bin |
meillo@759 | 40 @cp -f aewl ${DESTDIR}${PREFIX}/bin |
meillo@759 | 41 @chmod 755 ${DESTDIR}${PREFIX}/bin/aewl |
arg@180 | 42 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 |
garbeam@1 | 43 @mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
meillo@759 | 44 @sed 's/VERSION/${VERSION}/g' < aewl.1 > ${DESTDIR}${MANPREFIX}/man1/aewl.1 |
meillo@759 | 45 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/aewl.1 |
garbeam@1 | 46 |
garbeam@1 | 47 uninstall: |
arg@180 | 48 @echo removing executable file from ${DESTDIR}${PREFIX}/bin |
meillo@759 | 49 @rm -f ${DESTDIR}${PREFIX}/bin/aewl |
arg@180 | 50 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 |
meillo@759 | 51 @rm -f ${DESTDIR}${MANPREFIX}/man1/aewl.1 |
arg@174 | 52 |
arg@174 | 53 .PHONY: all options clean dist install uninstall |