2007-09-10 12:06:54 +02:00
|
|
|
# awesome
|
2008-01-02 16:59:43 +01:00
|
|
|
# © 2007-2008 Julien Danjou <julien@danjou.info>
|
2007-09-05 20:15:00 +02:00
|
|
|
|
|
|
|
include config.mk
|
|
|
|
|
2007-12-27 17:27:20 +01:00
|
|
|
SRC = focus.c client.c draw.c event.c layout.c awesome.c tag.c util.c xutil.c config.c screen.c statusbar.c uicb.c window.c rules.c mouse.c awesome-client-common.c widget.c ewmh.c
|
2007-12-15 07:53:53 +01:00
|
|
|
OBJ = ${SRC:.c=.o} ${LAYOUTS:.c=.o} ${WIDGETS:.c=.o}
|
2007-12-15 05:08:44 +01:00
|
|
|
DOCS = awesome.1.txt awesome-client.1.txt awesomerc.1.txt
|
2007-09-05 20:15:00 +02:00
|
|
|
|
2007-10-29 16:14:50 +01:00
|
|
|
SRCCLIENT = awesome-client.c awesome-client-common.c util.c
|
2007-10-27 13:22:47 +02:00
|
|
|
OBJCLIENT = ${SRCCLIENT:.c=.o}
|
|
|
|
|
2007-11-22 09:09:58 +01:00
|
|
|
all: options awesome awesome-client
|
2007-09-05 20:15:00 +02:00
|
|
|
|
|
|
|
options:
|
2007-09-10 12:06:54 +02:00
|
|
|
@echo awesome build options:
|
2007-09-05 20:15:00 +02:00
|
|
|
@echo "LAYOUTS = ${LAYOUTS}"
|
2007-12-15 07:53:53 +01:00
|
|
|
@echo "WIDGETS = ${WIDGETS}"
|
2007-09-05 20:15:00 +02:00
|
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
|
|
@echo "CC = ${CC}"
|
|
|
|
|
|
|
|
.c.o:
|
2007-11-22 09:02:03 +01:00
|
|
|
@echo -e "\t(CC) $<"
|
2007-09-05 20:15:00 +02:00
|
|
|
@${CC} -c ${CFLAGS} $< -o $@
|
|
|
|
|
2007-09-10 12:06:54 +02:00
|
|
|
${OBJ}: awesome.h config.mk
|
2007-09-05 20:15:00 +02:00
|
|
|
|
2007-10-27 13:22:47 +02:00
|
|
|
${OBJCLIENT}: config.mk
|
|
|
|
|
2007-12-02 15:43:40 +01:00
|
|
|
man: ${DOCS}
|
|
|
|
asciidoc -d manpage -b docbook awesome.1.txt
|
|
|
|
asciidoc -d manpage -b docbook awesome-client.1.txt
|
2007-12-15 05:08:44 +01:00
|
|
|
asciidoc -d manpage -b docbook awesomerc.1.txt
|
2007-12-02 15:43:40 +01:00
|
|
|
xmlto man awesome.1.xml
|
|
|
|
xmlto man awesome-client.1.xml
|
2007-12-15 05:08:44 +01:00
|
|
|
xmlto man awesomerc.1.xml
|
2007-11-21 14:29:16 +01:00
|
|
|
|
2007-10-27 13:22:47 +02:00
|
|
|
awesome-client: ${OBJCLIENT}
|
2007-11-22 09:02:03 +01:00
|
|
|
@echo -e "\t(CC) ${OBJCLIENT} -o $@"
|
2007-11-17 20:53:31 +01:00
|
|
|
@${CC} -o $@ ${OBJCLIENT} ${CLIENTLDFLAGS}
|
2007-10-27 13:22:47 +02:00
|
|
|
|
2007-12-13 11:16:43 +01:00
|
|
|
defconfig.h: awesomerc
|
|
|
|
@echo generating defconfig.h from awesomerc
|
|
|
|
@echo "#define AWESOME_DEFAULT_CONFIG \\" > defconfig.h
|
|
|
|
@echo -n "\"" >> defconfig.h
|
2007-12-14 17:05:29 +01:00
|
|
|
@sed 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' awesomerc >> defconfig.h
|
2007-12-13 11:16:43 +01:00
|
|
|
@echo "\"" >> defconfig.h
|
|
|
|
|
|
|
|
awesome: defconfig.h ${OBJ}
|
2007-11-22 09:02:03 +01:00
|
|
|
@echo -e "\t(CC) ${OBJ} -o $@"
|
2007-09-05 20:15:00 +02:00
|
|
|
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo cleaning
|
2007-12-13 11:16:43 +01:00
|
|
|
@rm -f awesome awesome-client defconfig.h ${DOCS:.txt=} ${DOCS:.txt=.xml} ${OBJCLIENT} ${OBJ} awesome-${VERSION}.tar.gz
|
2007-09-05 22:47:43 +02:00
|
|
|
@rm -rf doc
|
2007-09-05 20:15:00 +02:00
|
|
|
|
|
|
|
dist: clean
|
|
|
|
@echo creating dist tarball
|
2007-09-17 14:13:53 +02:00
|
|
|
@mkdir awesome-${VERSION}
|
|
|
|
@mkdir awesome-${VERSION}/layouts
|
2007-12-15 07:53:53 +01:00
|
|
|
@mkdir awesome-${VERSION}/widgets
|
2008-01-03 13:22:37 +01:00
|
|
|
@mkdir awesome-${VERSION}/icons
|
|
|
|
@mkdir awesome-${VERSION}/icons/layouts
|
2007-11-16 20:23:28 +01:00
|
|
|
@cp -fR STYLE LICENSE AUTHORS Makefile README awesomerc config.mk \
|
2007-12-15 05:08:44 +01:00
|
|
|
awesome-client.1.txt awesome.1.txt awesomerc.1.txt ${SRCCLIENT} ${SRCCLIENT:.c=.h} ${SRC} ${SRC:.c=.h} \
|
2008-01-01 17:38:27 +01:00
|
|
|
awesome-${VERSION} || true
|
2007-09-17 14:13:53 +02:00
|
|
|
@cp -R ${LAYOUTS} ${LAYOUTS:.c=.h} awesome-${VERSION}/layouts
|
2008-01-03 13:22:37 +01:00
|
|
|
@cp -R ${WIDGETS} awesome-${VERSION}/widgets
|
|
|
|
@cp -R icons/layouts/* awesome-${VERSION}/icons/layouts
|
2007-09-10 12:06:54 +02:00
|
|
|
@tar -cf awesome-${VERSION}.tar awesome-${VERSION}
|
2007-09-17 14:13:53 +02:00
|
|
|
@gzip -9 awesome-${VERSION}.tar
|
2007-09-10 12:06:54 +02:00
|
|
|
@rm -rf awesome-${VERSION}
|
2007-09-05 20:15:00 +02:00
|
|
|
|
2007-11-22 09:09:58 +01:00
|
|
|
strip: awesome awesome-client
|
2007-10-29 20:19:14 +01:00
|
|
|
strip awesome
|
|
|
|
strip awesome-client
|
|
|
|
|
2007-11-25 18:50:07 +01:00
|
|
|
install: strip install-unstrip
|
2007-10-29 20:19:14 +01:00
|
|
|
|
2007-12-02 15:43:40 +01:00
|
|
|
install-unstrip: awesome awesome-client man
|
2007-09-05 20:15:00 +02:00
|
|
|
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
|
2007-12-02 15:43:40 +01:00
|
|
|
@install -d ${DESTDIR}${PREFIX}/bin
|
|
|
|
@install -m 755 awesome awesome-client ${DESTDIR}${PREFIX}/bin
|
2007-09-05 20:15:00 +02:00
|
|
|
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
|
2007-12-02 15:43:40 +01:00
|
|
|
@install -d ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
@install -m 644 ${DOCS:.txt=} ${DESTDIR}${MANPREFIX}/man1
|
2007-12-27 16:58:09 +01:00
|
|
|
@echo installing shared data to ${DESTDIR}${PREFIX}/share
|
|
|
|
@install -d ${DESTDIR}${PREFIX}/share/awesome/icons/layouts
|
|
|
|
@install icons/layouts/* ${DESTDIR}${PREFIX}/share/awesome/icons/layouts/
|
2007-09-05 20:15:00 +02:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
|
2007-12-02 15:43:40 +01:00
|
|
|
@rm ${DESTDIR}${PREFIX}/bin/awesome ${DESTDIR}${PREFIX}/bin/awesome-client
|
2007-09-05 20:15:00 +02:00
|
|
|
@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
|
2007-12-15 05:08:44 +01:00
|
|
|
@rm ${DESTDIR}${MANPREFIX}/man1/awesome.1 ${DESTDIR}${MANPREFIX}/man1/awesome-client.1 ${DESTDIR}${MANPREFIX}/man1/awesomerc.1
|
2007-12-27 16:58:09 +01:00
|
|
|
@echo removing shared data from ${DESTDIR}${PREFIX}/share
|
|
|
|
@rm -rf ${DESTDIR}${PREFIX}/share/awesome
|
2007-09-05 20:15:00 +02:00
|
|
|
|
|
|
|
doc:
|
|
|
|
@echo generating documentation
|
2007-09-10 12:06:54 +02:00
|
|
|
@doxygen awesome.doxygen
|
2007-09-05 20:15:00 +02:00
|
|
|
|
2007-12-02 15:43:40 +01:00
|
|
|
.PHONY: all options clean dist install uninstall doc man
|