mu-wizard

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

Makefile (794B)


      1 PREFIX     = /usr/local
      2 BINDIR     = ${PREFIX}/bin
      3 SHAREDIR   = ${PREFIX}/share
      4 MANDIR     = ${SHAREDIR}/man
      5 MAN1       = ${MANDIR}/man1
      6 MUSHAREDIR = ${SHAREDIR}/mu-wizard
      7 INSTALLSH  = ./tools/install.sh
      8 VERSION    = 1.0.0-rc1
      9 
     10 all:
     11 	@echo "Run 'make install' to install mu-wizard."
     12 
     13 install:
     14 	${INSTALLSH} -Dm755 -s 's|/usr/share/mu-wizard|${MUSHAREDIR}|g;s|@VERSION@|${VERSION}|g' \
     15 		bin/muw ${DESTDIR}${BINDIR}/muw
     16 	${INSTALLSH} -Dm644 mu4e-config.el ${DESTDIR}${MUSHAREDIR}/mu4e-config.el
     17 	${INSTALLSH} -Dm644 -t ${DESTDIR}${MUSHAREDIR}/overrides overrides/*
     18 	${INSTALLSH} -Dm644 -t ${DESTDIR}${MAN1} man/*.1
     19 
     20 uninstall:
     21 	rm -rf ${DESTDIR}${BINDIR}/muw ${DESTDIR}${MUSHAREDIR}
     22 	for man in man/*; do rm -f ${DESTDIR}${MANDIR}/man$${man##*.}/$${man##*/}; done
     23 
     24 .PHONY: all install uninstall