2005-11-18 18:54:58 +03:00
|
|
|
# wmii - window manager improved 2
|
2006-01-20 17:20:24 +03:00
|
|
|
# (C)opyright MMIV-MMVI Anselm R. Garbe
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
include config.mk
|
|
|
|
|
2006-02-10 00:48:01 +03:00
|
|
|
SUBDIRS = libcext liblitz libixp cmd
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2006-02-16 03:05:16 +03:00
|
|
|
BIN = cmd/wm/wmii cmd/wm/wmiiwm cmd/wmiimenu cmd/wmiipsel cmd/wmiir
|
2005-11-18 18:54:58 +03:00
|
|
|
|
2006-02-10 11:13:35 +03:00
|
|
|
MAN1 = cmd/wm/wmii.1 cmd/wm/wmiiwm.1 \
|
2006-02-09 21:40:12 +03:00
|
|
|
cmd/wmiimenu.1 cmd/wmiir.1
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
all:
|
|
|
|
@echo wmii build options:
|
|
|
|
@echo "LIBS = ${LIBS}"
|
|
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
|
|
@echo "CC = ${CC}"
|
|
|
|
@for i in ${SUBDIRS} cmd/wm; do \
|
2005-12-17 14:46:05 +03:00
|
|
|
(cd $$i; make;) \
|
2005-11-18 18:54:58 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
dist: clean
|
2005-12-17 14:46:05 +03:00
|
|
|
mkdir -p wmii-${VERSION}
|
2006-02-15 00:24:58 +03:00
|
|
|
cp -R Makefile README LICENSE config.mk rc ${SUBDIRS} doc wmii-${VERSION}
|
2005-12-17 14:46:05 +03:00
|
|
|
tar -cf wmii-${VERSION}.tar wmii-${VERSION}
|
|
|
|
gzip wmii-${VERSION}.tar
|
|
|
|
rm -rf wmii-${VERSION}
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
2005-12-17 14:46:05 +03:00
|
|
|
for i in ${SUBDIRS} cmd/wm; do \
|
|
|
|
(cd $$i; make clean); \
|
2005-11-18 18:54:58 +03:00
|
|
|
done
|
|
|
|
rm -rf wmii-${VERSION}*
|
|
|
|
|
|
|
|
install: all
|
|
|
|
@mkdir -p ${DESTDIR}${PREFIX}/bin
|
|
|
|
@cp -f ${BIN} ${DESTDIR}${PREFIX}/bin
|
|
|
|
@sed 's|CONFPREFIX|${CONFPREFIX}|; s|9PREFIX|${9PREFIX}|' <cmd/wm/wmii >${DESTDIR}${PREFIX}/bin/wmii
|
|
|
|
@for i in ${BIN}; do \
|
|
|
|
chmod 755 ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
|
|
|
|
done
|
|
|
|
@echo installed executable files to ${DESTDIR}${PREFIX}/bin
|
|
|
|
@mkdir -p ${DESTDIR}${CONFPREFIX}/wmii-3
|
|
|
|
@cd rc; for i in *; do \
|
2006-02-11 16:07:36 +03:00
|
|
|
sed 's|CONFPREFIX|${CONFPREFIX}|; s|9PREFIX|${9PREFIX}|' <$$i >${DESTDIR}${CONFPREFIX}/wmii-3/$$i; \
|
2005-11-18 18:54:58 +03:00
|
|
|
chmod 755 ${DESTDIR}${CONFPREFIX}/wmii-3/$$i; \
|
|
|
|
done
|
|
|
|
@echo installed rc scripts to ${DESTDIR}${CONFPREFIX}/wmii-3
|
|
|
|
@mkdir -p ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
@cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
@sed 's|CONFPREFIX|${CONFPREFIX}|' <cmd/wm/wmii.1 >${DESTDIR}${MANPREFIX}/man1/wmii.1
|
|
|
|
@for i in ${MAN1}; do \
|
|
|
|
chmod 444 ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
|
|
|
|
done
|
|
|
|
@echo installed manual pages to ${DESTDIR}${MANPREFIX}/man1
|
|
|
|
|
|
|
|
uninstall:
|
2005-12-17 14:46:05 +03:00
|
|
|
for i in ${BIN}; do \
|
2005-11-18 18:54:58 +03:00
|
|
|
rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
|
|
|
|
done
|
2005-12-17 14:46:05 +03:00
|
|
|
for i in ${MAN1}; do \
|
2005-11-18 18:54:58 +03:00
|
|
|
rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
|
|
|
|
done
|
2005-12-17 14:46:05 +03:00
|
|
|
rm -rf ${DESTDIR}${CONFPREFIX}/wmii-3
|