update TODO (bis)
[awesome.git] / Makefile
blob19fb4f4c3d1659b96b0e3563e21934aa515caf28
1 # awesome
2 # © 2007 Julien Danjou
4 include config.mk
6 SRC = client.c draw.c event.c layout.c awesome.c tag.c util.c config.c screen.c statusbar.c
7 OBJ = ${SRC:.c=.o} ${LAYOUTS:.c=.o}
9 all: options awesome
11 options:
12 @echo awesome build options:
13 @echo "LAYOUTS = ${LAYOUTS}"
14 @echo "CFLAGS = ${CFLAGS}"
15 @echo "LDFLAGS = ${LDFLAGS}"
16 @echo "CC = ${CC}"
18 .c.o:
19 @echo -e \\t\(CC\) $<
20 @${CC} -c ${CFLAGS} $< -o $@
22 ${OBJ}: awesome.h config.mk
24 awesome: ${OBJ}
25 @echo -e \\t\(CC\) ${OBJ} -o $@
26 @${CC} -o $@ ${OBJ} ${LDFLAGS}
28 clean:
29 @echo cleaning
30 @rm -f awesome ${OBJ} awesome-${VERSION}.tar.gz
31 @rm -rf doc
33 dist: clean
34 @echo creating dist tarball
35 @mkdir -p awesome-${VERSION}
36 @cp -R LICENSE Makefile README config.*.h config.mk \
37 awesome.1 awesome.h grid.h tile.h mem.h ${SRC} ${LAYOUTS} awesome-${VERSION}
38 @tar -cf awesome-${VERSION}.tar awesome-${VERSION}
39 @gzip awesome-${VERSION}.tar
40 @rm -rf awesome-${VERSION}
42 install: all
43 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
44 @mkdir -p ${DESTDIR}${PREFIX}/bin
45 @cp -f awesome ${DESTDIR}${PREFIX}/bin
46 @chmod 755 ${DESTDIR}${PREFIX}/bin/awesome
47 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
48 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
49 @sed "s/VERSION/${VERSION}/g" < awesome.1 > ${DESTDIR}${MANPREFIX}/man1/awesome.1
50 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/awesome.1
52 uninstall:
53 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
54 @rm -f ${DESTDIR}${PREFIX}/bin/awesome
55 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
56 @rm -f ${DESTDIR}${MANPREFIX}/man1/awesome.1
58 doc:
59 @echo generating documentation
60 @doxygen awesome.doxygen
62 .PHONY: all options clean dist install uninstall doc