2007-09-10 12:06:54 +02:00
|
|
|
# awesome
|
2007-09-05 20:15:00 +02:00
|
|
|
# © 2007 Julien Danjou
|
|
|
|
|
|
|
|
include config.mk
|
|
|
|
|
2007-09-15 15:16:53 +02:00
|
|
|
SRC = client.c draw.c event.c layout.c awesome.c tag.c util.c config.c screen.c statusbar.c
|
2007-09-05 20:15:00 +02:00
|
|
|
OBJ = ${SRC:.c=.o} ${LAYOUTS:.c=.o}
|
|
|
|
|
2007-09-10 12:06:54 +02:00
|
|
|
all: options awesome
|
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}"
|
|
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
|
|
@echo "CC = ${CC}"
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
@echo -e \\t\(CC\) $<
|
|
|
|
@${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-09-10 12:06:54 +02:00
|
|
|
awesome: ${OBJ}
|
2007-09-05 20:15:00 +02:00
|
|
|
@echo -e \\t\(CC\) ${OBJ} -o $@
|
|
|
|
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo cleaning
|
2007-09-10 12:06:54 +02:00
|
|
|
@rm -f awesome ${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-10 12:06:54 +02:00
|
|
|
@mkdir -p awesome-${VERSION}
|
2007-09-05 20:15:00 +02:00
|
|
|
@cp -R LICENSE Makefile README config.*.h config.mk \
|
2007-09-10 12:06:54 +02:00
|
|
|
awesome.1 awesome.h grid.h tile.h mem.h ${SRC} ${LAYOUTS} awesome-${VERSION}
|
|
|
|
@tar -cf awesome-${VERSION}.tar awesome-${VERSION}
|
|
|
|
@gzip awesome-${VERSION}.tar
|
|
|
|
@rm -rf awesome-${VERSION}
|
2007-09-05 20:15:00 +02:00
|
|
|
|
|
|
|
install: all
|
|
|
|
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
|
|
|
|
@mkdir -p ${DESTDIR}${PREFIX}/bin
|
2007-09-10 12:06:54 +02:00
|
|
|
@cp -f awesome ${DESTDIR}${PREFIX}/bin
|
|
|
|
@chmod 755 ${DESTDIR}${PREFIX}/bin/awesome
|
2007-09-05 20:15:00 +02:00
|
|
|
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
2007-09-10 12:06:54 +02:00
|
|
|
@sed "s/VERSION/${VERSION}/g" < awesome.1 > ${DESTDIR}${MANPREFIX}/man1/awesome.1
|
|
|
|
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/awesome.1
|
2007-09-05 20:15:00 +02:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
|
2007-09-10 12:06:54 +02:00
|
|
|
@rm -f ${DESTDIR}${PREFIX}/bin/awesome
|
2007-09-05 20:15:00 +02:00
|
|
|
@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
|
2007-09-10 12:06:54 +02:00
|
|
|
@rm -f ${DESTDIR}${MANPREFIX}/man1/awesome.1
|
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
|
|
|
|
|
|
|
.PHONY: all options clean dist install uninstall doc
|