Skip to content

Commit

Permalink
Add make install/uninstall
Browse files Browse the repository at this point in the history
* Makefile: Do it.
  • Loading branch information
Thierry Volpiatto committed Feb 26, 2018
1 parent a5e9a7b commit 9a3e7de
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,18 @@ clean:
autoloads:
$(EVAL) "(let ((generated-autoload-file (expand-file-name \"helm-autoloads.el\" \"$(PKGDIR)\")) \
(backup-inhibited t)) (update-directory-autoloads \"$(PKGDIR)\"))"

PREFIX=/usr/local/
BIN=${PREFIX}bin/
DESTDIR=${PREFIX}share/emacs/site-lisp/helm/
install:
test -d ${DESTDIR} || mkdir ${DESTDIR}
cp -vf *.elc $(DESTDIR)
cp -vf helm-autoloads.el $(DESTDIR)
cp -vf emacs-helm.sh $(DESTDIR)
ln -s ${DESTDIR}emacs-helm.sh ${BIN}helm
uninstall:
rm -vf ${DESTDIR}*.elc
rm -vf ${DESTDIR}*.el
rm -vf ${DESTDIR}emacs-helm.sh
rm -vf ${BIN}helm

0 comments on commit 9a3e7de

Please sign in to comment.