2006-10-12 18:10:57 +04:00
|
|
|
# window manager improved 2 - window manager improved 2
|
|
|
|
# (C)opyright MMVI Anselm R. Garbe
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
include config.mk
|
|
|
|
|
2006-10-12 20:26:30 +04:00
|
|
|
SRC = area.c bar.c client.c column.c draw.c event.c \
|
2006-10-20 12:08:54 +04:00
|
|
|
frame.c fs.c geom.c key.c main.c mouse.c rule.c view.c
|
2006-10-12 18:10:57 +04:00
|
|
|
OBJ = ${SRC:.c=.o}
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2006-10-12 18:10:57 +04:00
|
|
|
all: options wmiiwm
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2006-10-12 18:10:57 +04:00
|
|
|
options:
|
2005-11-18 18:54:58 +03:00
|
|
|
@echo wmii build options:
|
|
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
|
|
@echo "CC = ${CC}"
|
2006-10-12 18:10:57 +04:00
|
|
|
@echo "LD = ${LD}"
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2006-10-12 18:10:57 +04:00
|
|
|
.c.o:
|
|
|
|
@echo CC $<
|
|
|
|
@${CC} -c ${CFLAGS} $<
|
|
|
|
|
2006-10-20 12:07:55 +04:00
|
|
|
${OBJ}: wmii.h config.mk
|
2006-10-12 18:10:57 +04:00
|
|
|
|
|
|
|
wmiiwm: ${OBJ}
|
|
|
|
@echo LD $@
|
|
|
|
@${LD} -o $@ ${OBJ} ${LDFLAGS}
|
|
|
|
@strip $@
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
clean:
|
2006-10-12 18:10:57 +04:00
|
|
|
@echo cleaning
|
|
|
|
@rm -f wmiiwm ${OBJ} wmii-${VERSION}.tar.gz
|
|
|
|
|
|
|
|
dist: clean
|
|
|
|
@echo creating dist tarball
|
|
|
|
@mkdir -p wmii-${VERSION}
|
2006-12-24 22:57:29 +03:00
|
|
|
@cp -R LICENSE Makefile README wmii wmiir config.mk rc \
|
2006-12-25 00:32:07 +03:00
|
|
|
wmii.1 wmiir.1 wmiiwm.1 wmii.h ${SRC} wmii-${VERSION}
|
2006-10-12 18:10:57 +04:00
|
|
|
@tar -cf wmii-${VERSION}.tar wmii-${VERSION}
|
|
|
|
@gzip wmii-${VERSION}.tar
|
|
|
|
@rm -rf wmii-${VERSION}
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
install: all
|
2006-10-12 18:10:57 +04:00
|
|
|
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
|
2005-11-18 18:54:58 +03:00
|
|
|
@mkdir -p ${DESTDIR}${PREFIX}/bin
|
2006-10-12 18:30:38 +04:00
|
|
|
@sed 's|CONFPREFIX|${CONFPREFIX}|g; s|VERSION|${VERSION}|g' <wmii >${DESTDIR}${PREFIX}/bin/wmii
|
2006-12-24 02:20:28 +03:00
|
|
|
@cp -f wmiir ${DESTDIR}${PREFIX}/bin
|
2006-10-12 18:10:57 +04:00
|
|
|
@cp -f wmiiwm ${DESTDIR}${PREFIX}/bin
|
|
|
|
@chmod 755 ${DESTDIR}${PREFIX}/bin/wmii
|
2006-12-24 02:20:28 +03:00
|
|
|
@chmod 755 ${DESTDIR}${PREFIX}/bin/wmiir
|
2006-10-12 18:10:57 +04:00
|
|
|
@chmod 755 ${DESTDIR}${PREFIX}/bin/wmiiwm
|
2006-10-12 18:20:38 +04:00
|
|
|
@echo installing scripts to ${DESTDIR}${CONFPREFIX}/wmii-${VERSION}
|
|
|
|
@mkdir -p ${DESTDIR}${CONFPREFIX}/wmii-${VERSION}
|
|
|
|
@cd rc; for i in *; do \
|
|
|
|
sed 's|CONFPREFIX|${CONFPREFIX}|g' <$$i >${DESTDIR}${CONFPREFIX}/wmii-${VERSION}/$$i; \
|
|
|
|
chmod 755 ${DESTDIR}${CONFPREFIX}/wmii-${VERSION}/$$i; \
|
|
|
|
done
|
2006-10-12 18:10:57 +04:00
|
|
|
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
|
2005-11-18 18:54:58 +03:00
|
|
|
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
2007-01-03 23:58:22 +03:00
|
|
|
@sed 's/VERSION/${VERSION}/g ; s|CONFPREFIX|${CONFPREFIX}|g' < wmii.1 > ${DESTDIR}${MANPREFIX}/man1/wmii.1
|
2006-12-24 02:20:28 +03:00
|
|
|
@sed 's/VERSION/${VERSION}/g' < wmiir.1 > ${DESTDIR}${MANPREFIX}/man1/wmiir.1
|
2006-10-12 18:10:57 +04:00
|
|
|
@sed 's/VERSION/${VERSION}/g' < wmiiwm.1 > ${DESTDIR}${MANPREFIX}/man1/wmiiwm.1
|
|
|
|
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/wmii.1
|
2006-12-24 02:20:28 +03:00
|
|
|
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/wmiir.1
|
2006-10-12 18:10:57 +04:00
|
|
|
@chmod 644 ${DESTDIR}${MANPREFIX}/man1/wmiiwm.1
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
uninstall:
|
2006-10-12 18:10:57 +04:00
|
|
|
@echo removing executable file from ${DESTDIR}${PREFIX}/bin
|
|
|
|
@rm -f ${DESTDIR}${PREFIX}/bin/wmii
|
2006-12-24 02:20:28 +03:00
|
|
|
@rm -f ${DESTDIR}${PREFIX}/bin/wmiir
|
2006-10-12 18:10:57 +04:00
|
|
|
@rm -f ${DESTDIR}${PREFIX}/bin/wmiiwm
|
2006-10-12 18:20:38 +04:00
|
|
|
@echo removing scripts from ${DESTDIR}${CONFPREFIX}/wmii-${VERSION}
|
|
|
|
@rm -rf ${DESTDIR}${CONFPREFIX}/wmii-${VERSION}
|
2006-10-12 18:10:57 +04:00
|
|
|
@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
@rm -f ${DESTDIR}${MANPREFIX}/man1/wmii.1
|
2006-12-24 02:20:28 +03:00
|
|
|
@rm -f ${DESTDIR}${MANPREFIX}/man1/wmiir.1
|
2006-10-12 18:10:57 +04:00
|
|
|
@rm -f ${DESTDIR}${MANPREFIX}/man1/wmiiwm.1
|
|
|
|
|
|
|
|
.PHONY: all options clean dist install uninstall
|