2 # © 2007 Julien Danjou <julien@danjou.info>
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
15 @echo awesome build options
:
16 @echo
"LAYOUTS = ${LAYOUTS}"
17 @echo
"CFLAGS = ${CFLAGS}"
18 @echo
"LDFLAGS = ${LDFLAGS}"
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}
34 @echo
-e
\\t\
(CC\
) ${OBJ} -o
$@
35 @
${CC} -o
$@
${OBJ} ${LDFLAGS}
39 @
rm -f awesome awesome-client
${OBJCLIENT} ${OBJ} awesome-
${VERSION}.
tar.gz
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}
58 install: strip 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
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
79 @echo generating documentation
80 @doxygen awesome.doxygen
82 .PHONY
: all options
clean dist install uninstall doc