aewl
view Makefile @ 749:6692d7e7e156
added maxlayout by mitch, moved config.h to config.meillo.h, some smaller modifications
author | meillo@marmaro.de |
---|---|
date | Sun, 11 Feb 2007 17:20:22 +0100 |
parents | 7c5d5b1e49c9 |
children | 743061dbe7f2 c459e05a61a8 |
line source
1 # dwm - dynamic window manager
2 # (C)opyright MMVI-MMVII Anselm R. Garbe
4 include config.mk
6 SRC = client.c draw.c event.c main.c tag.c util.c view.c
7 OBJ = ${SRC:.c=.o}
9 all: options dwm
11 options:
12 @echo dwm build options:
13 @echo "CFLAGS = ${CFLAGS}"
14 @echo "LDFLAGS = ${LDFLAGS}"
15 @echo "CC = ${CC}"
17 .c.o:
18 @echo CC $<
19 @${CC} -c ${CFLAGS} $<
21 ${OBJ}: dwm.h config.h config.mk
23 config.h:
24 @echo creating $@ from config.meillo.h
25 @cp config.meillo.h $@
27 dwm: ${OBJ}
28 @echo CC -o $@
29 @${CC} -o $@ ${OBJ} ${LDFLAGS}
30 @strip $@
32 clean:
33 @echo cleaning
34 @rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz
36 dist: clean
37 @echo creating dist tarball
38 @mkdir -p dwm-${VERSION}
39 @cp -R LICENSE Makefile README config.*.h config.mk \
40 dwm.1 dwm.h ${SRC} dwm-${VERSION}
41 @tar -cf dwm-${VERSION}.tar dwm-${VERSION}
42 @gzip dwm-${VERSION}.tar
43 @rm -rf dwm-${VERSION}
45 install: all
46 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
47 @mkdir -p ${DESTDIR}${PREFIX}/bin
48 @cp -f dwm ${DESTDIR}${PREFIX}/bin
49 @chmod 755 ${DESTDIR}${PREFIX}/bin/dwm
50 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
51 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
52 @sed 's/VERSION/${VERSION}/g' < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
53 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
55 uninstall:
56 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
57 @rm -f ${DESTDIR}${PREFIX}/bin/dwm
58 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
59 @rm -f ${DESTDIR}${MANPREFIX}/man1/dwm.1
61 .PHONY: all options clean dist install uninstall