aewl
annotate Makefile @ 112:2c9e0dae41f3
removed TODO, because dwm is nearly finished
author | arg@10ksloc.org |
---|---|
date | Wed, 19 Jul 2006 15:03:53 +0200 |
parents | f08271b7cb20 |
children | eca09aac3ccc |
rev | line source |
---|---|
garbeam@34 | 1 # dwm - dynamic window manager |
garbeam@0 | 2 # (C)opyright MMVI Anselm R. Garbe |
garbeam@0 | 3 |
garbeam@0 | 4 include config.mk |
garbeam@0 | 5 |
garbeam@75 | 6 SRC = client.c draw.c event.c main.c tag.c util.c |
garbeam@32 | 7 OBJ = ${SRC:.c=.o} |
garbeam@34 | 8 MAN1 = dwm.1 |
garbeam@34 | 9 BIN = dwm |
garbeam@0 | 10 |
garbeam@91 | 11 all: options dwm |
garbeam@0 | 12 @echo finished |
garbeam@0 | 13 |
garbeam@91 | 14 options: |
garbeam@34 | 15 @echo dwm build options: |
garbeam@1 | 16 @echo "LIBS = ${LIBS}" |
garbeam@1 | 17 @echo "CFLAGS = ${CFLAGS}" |
garbeam@1 | 18 @echo "LDFLAGS = ${LDFLAGS}" |
garbeam@1 | 19 @echo "CC = ${CC}" |
garbeam@1 | 20 |
garbeam@0 | 21 .c.o: |
garbeam@0 | 22 @echo CC $< |
garbeam@0 | 23 @${CC} -c ${CFLAGS} $< |
garbeam@0 | 24 |
garbeam@43 | 25 ${OBJ}: dwm.h |
garbeam@3 | 26 |
garbeam@34 | 27 dwm: ${OBJ} |
garbeam@3 | 28 @echo LD $@ |
garbeam@32 | 29 @${CC} -o $@ ${OBJ} ${LDFLAGS} |
garbeam@0 | 30 |
garbeam@0 | 31 clean: |
garbeam@70 | 32 rm -f dwm *.o core dwm-${VERSION}.tar.gz |
garbeam@1 | 33 |
garbeam@1 | 34 dist: clean |
garbeam@34 | 35 mkdir -p dwm-${VERSION} |
garbeam@68 | 36 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION} |
garbeam@34 | 37 tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
garbeam@34 | 38 gzip dwm-${VERSION}.tar |
garbeam@34 | 39 rm -rf dwm-${VERSION} |
garbeam@1 | 40 |
garbeam@1 | 41 install: all |
garbeam@1 | 42 @mkdir -p ${DESTDIR}${PREFIX}/bin |
garbeam@1 | 43 @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin |
garbeam@1 | 44 @echo installed executable files to ${DESTDIR}${PREFIX}/bin |
garbeam@1 | 45 @mkdir -p ${DESTDIR}${MANPREFIX}/man1 |
garbeam@1 | 46 @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1 |
garbeam@1 | 47 @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1 |
garbeam@1 | 48 |
garbeam@1 | 49 uninstall: |
garbeam@1 | 50 for i in ${BIN}; do \ |
garbeam@1 | 51 rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \ |
garbeam@1 | 52 done |
garbeam@1 | 53 for i in ${MAN1}; do \ |
garbeam@1 | 54 rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \ |
garbeam@1 | 55 done |