-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
35 lines (28 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.POSIX:
PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
SHAREDIR = ${PREFIX}/share
MANDIR = ${SHAREDIR}/man
MAN1 = ${MANDIR}/man1
MUSHAREDIR = ${SHAREDIR}/mu-wizard
INSTALLSH = ./tools/install.sh
VERSION = 1.0.0
all:
@echo "Run 'make install' to install mu-wizard."
dist:
mkdir -p mu-wizard-${VERSION}
cp -r LICENSE README.org mu4e-config.el tools Makefile bin man overrides mu-wizard-${VERSION}
tar cf - mu-wizard-${VERSION} | xz -c > mu-wizard-${VERSION}.tar.xz
rm -rf mu-wizard-${VERSION}
clean:
rm -f mu-wizard-${VERSION}.tar.xz
install:
${INSTALLSH} -Dm755 -s 's|/usr/share/mu-wizard|${MUSHAREDIR}|g;s|@VERSION@|${VERSION}|g' \
bin/muw ${DESTDIR}${BINDIR}/muw
${INSTALLSH} -Dm644 mu4e-config.el ${DESTDIR}${MUSHAREDIR}/mu4e-config.el
${INSTALLSH} -Dm644 -t ${DESTDIR}${MUSHAREDIR}/overrides overrides/*
${INSTALLSH} -Dm644 -t ${DESTDIR}${MAN1} man/*.1
uninstall:
rm -rf ${DESTDIR}${BINDIR}/muw ${DESTDIR}${MUSHAREDIR}
for man in man/*; do rm -f ${DESTDIR}${MANDIR}/man$${man##*.}/$${man##*/}; done
.PHONY: all dist clean install uninstall