aewl
view Makefile @ 197:c13f374f836c
slight fix
author | arg@10ksloc.org |
---|---|
date | Sat, 05 Aug 2006 13:10:09 +0200 |
parents | 4b770a585866 |
children | 38acc0874280 |
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}
9 all: options dwm
10 @echo finished
12 options:
13 @echo dwm build options:
14 @echo "CFLAGS = ${CFLAGS}"
15 @echo "LDFLAGS = ${LDFLAGS}"
16 @echo "CC = ${CC}"
18 .c.o:
19 @echo CC $<
20 @${CC} -c ${CFLAGS} $<
22 ${OBJ}: dwm.h config.h
24 config.h:
25 @echo creating $@ from config.default.h
26 @cp config.default.h $@
28 dwm: ${OBJ}
29 @echo LD $@
30 @${CC} -o $@ ${OBJ} ${LDFLAGS}
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 @cp -f dwm.1 ${DESTDIR}${MANPREFIX}/man1
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