mu-wizard

shell script to easily configure mu4e accounts on Emacs
git clone git://git.ckyln.com/mu-wizard
Log | Files | Refs | LICENSE

Makefile (1084B)


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