diff options
author | Arto Jantunen <viiru@debian.org> | 2022-02-19 20:50:36 +0200 |
---|---|---|
committer | Arto Jantunen <viiru@debian.org> | 2022-04-07 18:22:24 +0300 |
commit | a8972376ee2bf81c4a4fb7530b861ab1df15a828 (patch) | |
tree | 3423a89d3cff5b4bc6b09268ff7e3e15f9acd581 | |
parent | 2e95f459495cd60a574e6112cf683df6b9cd7e70 (diff) |
Patch Makefile install target paths to match convention
DESTDIR normally means what upstream calls PREFIX. Instead of changing the
make install invocation, just patch the Makefile. Should probably be sent
upstream.
-rw-r--r-- | Makefile | 31 |
1 files changed, 16 insertions, 15 deletions
@@ -90,20 +90,21 @@ autoloads: $(EVAL) "(progn (setq generated-autoload-file (expand-file-name \"helm-autoloads.el\" \"$(PKGDIR)\")) \ (setq backup-inhibited t) (update-directory-autoloads \"$(PKGDIR)\"))" -PREFIX=/usr/local/ -BIN=${PREFIX}bin/ -DESTDIR=${PREFIX}share/emacs/site-lisp/helm/ +DESTDIR=/usr/local +BIN=${DESTDIR}/bin +INSTDIR=${DESTDIR}/share/emacs/site-lisp/helm install: - test -d ${DESTDIR} || mkdir ${DESTDIR} - rm -f ${DESTDIR}*.el - rm -f ${DESTDIR}*.elc - cp -f *.el $(DESTDIR) - cp -f *.elc $(DESTDIR) - cp -f helm-autoloads.el $(DESTDIR) - cp -f emacs-helm.sh $(DESTDIR) - ln -fs ${DESTDIR}emacs-helm.sh ${BIN}helm + test -d ${INSTDIR} || mkdir -p ${INSTDIR} + test -d ${BIN} || mkdir -p ${BIN} + rm -f ${INSTDIR}*.el + rm -f ${INSTDIR}*.elc + cp -f *.el $(INSTDIR) + cp -f *.elc $(INSTDIR) + cp -f helm-autoloads.el $(INSTDIR) + cp -f emacs-helm.sh $(INSTDIR) + ln -fs ${INSTDIR}/emacs-helm.sh ${BIN}/helm uninstall: - rm -vf ${DESTDIR}*.elc - rm -vf ${DESTDIR}*.el - rm -vf ${DESTDIR}emacs-helm.sh - rm -vf ${BIN}helm + rm -vf ${INSTDIR}/*.elc + rm -vf ${INSTDIR}/*.el + rm -vf ${INSTDIR}/emacs-helm.sh + rm -vf ${BIN}/helm |