small fix for maximize() in floating layout
[awesome.git] / Makefile
blob92acd7c5311e6f09a38da47b30b2d8879cfefc78
1 # awesome
2 # © 2007 Julien Danjou <julien@danjou.info>
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 uicb.c window.c rules.c mouse.c awesome-client-common.c
7 OBJ = ${SRC:.c=.o} ${LAYOUTS:.c=.o}
9 SRCCLIENT = awesome-client.c awesome-client-common.c util.c
10 OBJCLIENT = ${SRCCLIENT:.c=.o}
12 all: options awesome awesome-client
14 options:
15 @echo awesome build options:
16 @echo "LAYOUTS = ${LAYOUTS}"
17 @echo "CFLAGS = ${CFLAGS}"
18 @echo "LDFLAGS = ${LDFLAGS}"
19 @echo "CC = ${CC}"
21 .c.o:
22 @echo -e \\t\(CC\) $<
23 @${CC} -c ${CFLAGS} $< -o $@
25 ${OBJ}: awesome.h config.mk
27 ${OBJCLIENT}: config.mk
29 awesome-client: ${OBJCLIENT}
30 @echo -e \\t\(CC\) ${OBJCLIENT} -o $@
31 @${CC} -o $@ ${OBJCLIENT} ${LDFLAGS}
33 awesome: ${OBJ}
34 @echo -e \\t\(CC\) ${OBJ} -o $@
35 @${CC} -o $@ ${OBJ} ${LDFLAGS}
37 clean:
38 @echo cleaning
39 @rm -f awesome awesome-client ${OBJCLIENT} ${OBJ} awesome-${VERSION}.tar.gz
40 @rm -rf doc
42 dist: clean
43 @echo creating dist tarball
44 @mkdir awesome-${VERSION}
45 @mkdir awesome-${VERSION}/layouts
46 @cp -R STYLE LICENSE AUTHORS Makefile README awesomerc config.mk \
47 awesome.1 ${SRCCLIENT} ${SRCCLIENT:.c=.h} ${SRC} ${SRC:.c=.h} \
48 common.h awesome-${VERSION}
49 @cp -R ${LAYOUTS} ${LAYOUTS:.c=.h} awesome-${VERSION}/layouts
50 @tar -cf awesome-${VERSION}.tar awesome-${VERSION}
51 @gzip -9 awesome-${VERSION}.tar
52 @rm -rf awesome-${VERSION}
54 strip: all
55 strip awesome
56 strip awesome-client
58 install: strip install-raw
60 install-raw:
61 @echo installing executable file to ${DESTDIR}${PREFIX}/bin
62 @mkdir -p ${DESTDIR}${PREFIX}/bin
63 @cp -f awesome awesome-client ${DESTDIR}${PREFIX}/bin
64 @chmod 755 ${DESTDIR}${PREFIX}/bin/awesome
65 @chmod 755 ${DESTDIR}${PREFIX}/bin/awesome-client
66 @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
67 @mkdir -p ${DESTDIR}${MANPREFIX}/man1
68 @sed "s/VERSION/${VERSION}/g" < awesome.1 > ${DESTDIR}${MANPREFIX}/man1/awesome.1
69 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/awesome.1
71 uninstall:
72 @echo removing executable file from ${DESTDIR}${PREFIX}/bin
73 @rm -f ${DESTDIR}${PREFIX}/bin/awesome
74 @rm -f ${DESTDIR}${PREFIX}/bin/awesome-client
75 @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
76 @rm -f ${DESTDIR}${MANPREFIX}/man1/awesome.1
78 doc:
79 @echo generating documentation
80 @doxygen awesome.doxygen
82 .PHONY: all options clean dist install uninstall doc