mirror of
https://github.com/0intro/wmii
synced 2024-12-22 19:36:51 +03:00
71 lines
2.1 KiB
Makefile
71 lines
2.1 KiB
Makefile
# wmii - window manager improved 2
|
|
# (C)opyright MMIV-MMV Anselm R. Garbe
|
|
|
|
include config.mk
|
|
|
|
SUBDIRS = libcext liblitz libixp libixp2 libwmii cmd
|
|
|
|
BIN = cmd/wm/wmii cmd/wm/wmiiwm cmd/wmibar cmd/wmifs \
|
|
cmd/wmikeys cmd/wmimenu cmd/wmiplumb cmd/wmir cmd/wmiwarp
|
|
|
|
MAN1 = cmd/wm/wmii.1 cmd/wm/wmiiwm.1 cmd/wmibar.1 cmd/wmifs.1 \
|
|
cmd/wmikeys.1 cmd/wmimenu.1 cmd/wmir.1
|
|
|
|
all:
|
|
@echo wmii build options:
|
|
@echo "LIBS = ${LIBS}"
|
|
@echo "INCLUDES = ${INCLUDES}"
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
@echo "CC = ${CC}"
|
|
@for i in ${SUBDIRS} cmd/wm; do \
|
|
(cd $$i; ${MAKE}); \
|
|
done
|
|
|
|
dist: clean
|
|
@mkdir -p wmii-${VERSION}
|
|
@cp -R Makefile README LICENSE config.mk rc ${SUBDIRS} extra doc wmii-${VERSION}
|
|
@tar -cf wmii-${VERSION}.tar wmii-${VERSION}
|
|
@gzip wmii-${VERSION}.tar
|
|
@rm -rf wmii-${VERSION}
|
|
@echo created distribution wmii-${VERSION}.tar.gz
|
|
|
|
clean:
|
|
rm -f *.o
|
|
@for i in ${SUBDIRS} cmd/wm; do \
|
|
(cd $$i; ${MAKE} clean); \
|
|
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 \
|
|
sed 's|9PREFIX|${9PREFIX}|' <$$i >${DESTDIR}${CONFPREFIX}/wmii-3/$$i; \
|
|
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:
|
|
@for i in ${BIN}; do \
|
|
rm -f ${DESTDIR}${PREFIX}/bin/`basename $$i`; \
|
|
done
|
|
@for i in ${MAN1}; do \
|
|
rm -f ${DESTDIR}${MANPREFIX}/man1/`basename $$i`; \
|
|
done
|
|
@rm -rf ${DESTDIR}${CONFPREFIX}/wmii-3
|
|
@echo "uninstalled wmii"
|