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
}
12 @echo awesome build options
:
13 @echo
"LAYOUTS = ${LAYOUTS}"
14 @echo
"CFLAGS = ${CFLAGS}"
15 @echo
"LDFLAGS = ${LDFLAGS}"
20 @
${CC} -c
${CFLAGS} $< -o
$@
22 ${OBJ}: awesome.h config.mk
25 @echo
-e
\\t\
(CC\
) ${OBJ} -o
$@
26 @
${CC} -o
$@
${OBJ} ${LDFLAGS}
30 @
rm -f awesome
${OBJ} awesome-
${VERSION}.
tar.gz
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}
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
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
59 @echo generating documentation
60 @doxygen awesome.doxygen
62 .PHONY
: all options
clean dist install uninstall doc