mu-wizard

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

Makefile (882B)


      1 PREFIX     = /usr/local
      2 BINDIR     = ${PREFIX}/bin
      3 SHAREDIR   = ${PREFIX}/share
      4 MUSHAREDIR = ${SHAREDIR}/mu-wizard
      5 
      6 all:
      7 	@echo "Run 'make install' to install mu-wizard."
      8 
      9 install:
     10 	mkdir -p ${DESTDIR}${BINDIR} ${DESTDIR}${MUSHAREDIR}
     11 	cp bin/mailsync ${DESTDIR}${BINDIR}/mailsync
     12 	chmod 755 ${DESTDIR}${BINDIR}/mailsync
     13 	sed 's|/usr/share/mu-wizard|${MUSHAREDIR}|g' < bin/muw > ${DESTDIR}${BINDIR}/muw
     14 	chmod 755 ${DESTDIR}${BINDIR}/muw
     15 	cp mu4e-config.el ${DESTDIR}${MUSHAREDIR}
     16 	chmod 644 ${DESTDIR}${MUSHAREDIR}/mu4e-config.el
     17 	mkdir -p ${DESTDIR}${MUSHAREDIR}/overrides
     18 	for override in overrides/*; do\
     19 		cp $${override} ${DESTDIR}${MUSHAREDIR}/overrides/$${override##*/}; \
     20 		chmod 644 ${DESTDIR}${MUSHAREDIR}/overrides/$${override##*/}; done
     21 
     22 uninstall:
     23 	rm -rf ${DESTDIR}${BINDIR}/muw ${DESTDIR}${BINDIR}/mailsync \
     24 		${DESTDIR}${MUSHAREDIR}
     25 
     26 .PHONY: all install uninstall