dwm-meillo

view Makefile @ 173:1db04019684e

changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
author arg@10ksloc.org
date Thu, 03 Aug 2006 10:55:07 +0200
parents 36cabfe408cd
children 48c820470858
line source
1 # dwm - dynamic window manager
2 # (C)opyright MMVI Anselm R. Garbe
4 include config.mk
6 SRC = client.c draw.c event.c main.c tag.c util.c
7 OBJ = ${SRC:.c=.o}
8 MAN1 = dwm.1
9 BIN = dwm
11 all: options dwm
12 @echo finished
14 options:
15 @echo dwm build options:
16 @echo "CFLAGS = ${CFLAGS}"
17 @echo "LDFLAGS = ${LDFLAGS}"
18 @echo "CC = ${CC}"
20 .c.o:
21 @echo CC $<
22 @${CC} -c ${CFLAGS} $<
24 ${OBJ}: dwm.h config.h
26 config.h:
27 cp config.default.h config.h
29 dwm: ${OBJ}
30 @echo LD $@
31 @${CC} -o $@ ${OBJ} ${LDFLAGS}
33 clean:
34 rm -f dwm *.o dwm-${VERSION}.tar.gz
36 dist: clean
37 mkdir -p dwm-${VERSION}
38 cp -R Makefile README LICENSE config.mk *.h *.c ${MAN1} dwm-${VERSION}
39 tar -cf dwm-${VERSION}.tar dwm-${VERSION}
40 gzip dwm-${VERSION}.tar
41 rm -rf dwm-${VERSION}
43 install: all
44 @mkdir -p ${DESTDIR}${PREFIX}/bin
45 @cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
46 @for i in ${BIN}; do \
47 chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
48 done
49 @echo installed executable files to ${DESTDIR}${PREFIX}/bin
50 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
51 @cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
52 @for i in ${MAN1}; do \
53 chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
54 done
55 @echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
57 uninstall:
58 for i in ${BIN}; do \
59 rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
60 done
61 for i in ${MAN1}; do \
62 rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
63 done