Skip to content

Commit 9a3e7de

Browse files
author
Thierry Volpiatto
committed
Add make install/uninstall
* Makefile: Do it.
1 parent a5e9a7b commit 9a3e7de

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,18 @@ clean:
7272
autoloads:
7373
$(EVAL) "(let ((generated-autoload-file (expand-file-name \"helm-autoloads.el\" \"$(PKGDIR)\")) \
7474
(backup-inhibited t)) (update-directory-autoloads \"$(PKGDIR)\"))"
75+
76+
PREFIX=/usr/local/
77+
BIN=${PREFIX}bin/
78+
DESTDIR=${PREFIX}share/emacs/site-lisp/helm/
79+
install:
80+
test -d ${DESTDIR} || mkdir ${DESTDIR}
81+
cp -vf *.elc $(DESTDIR)
82+
cp -vf helm-autoloads.el $(DESTDIR)
83+
cp -vf emacs-helm.sh $(DESTDIR)
84+
ln -s ${DESTDIR}emacs-helm.sh ${BIN}helm
85+
uninstall:
86+
rm -vf ${DESTDIR}*.elc
87+
rm -vf ${DESTDIR}*.el
88+
rm -vf ${DESTDIR}emacs-helm.sh
89+
rm -vf ${BIN}helm

0 commit comments

Comments
 (0)