commit 8343a40132fded64a73c1f98bae5f4a107e20a2a
parent 6a9844cb34ed1b70363ba8309b6ed5ae620de66b
Author: Cem Keylan <cem@ckyln.com>
Date: Wed, 31 Aug 2022 01:42:10 +0300
Makefile: add dist and clean targets
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -10,6 +10,15 @@ VERSION = 1.0.0-rc1
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
@@ -21,4 +30,4 @@ uninstall:
rm -rf ${DESTDIR}${BINDIR}/muw ${DESTDIR}${MUSHAREDIR}
for man in man/*; do rm -f ${DESTDIR}${MANDIR}/man$${man##*.}/$${man##*/}; done
-.PHONY: all install uninstall
+.PHONY: all dist clean install uninstall