diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 18:25:52 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 18:25:52 +0000 |
commit | 80c7fb273d8e710ea174cde389ccea199e8a754b (patch) | |
tree | 94991d2182e36c43f4a6dac0f35a6023230a4d45 /editors/matlab-mode/Makefile | |
parent | 38c8b857b2a15de072b4fa8baf0650634b5be996 (diff) | |
download | pkgsrc-80c7fb273d8e710ea174cde389ccea199e8a754b.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'editors/matlab-mode/Makefile')
-rw-r--r-- | editors/matlab-mode/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/editors/matlab-mode/Makefile b/editors/matlab-mode/Makefile index de6e884dd86..725dc39718a 100644 --- a/editors/matlab-mode/Makefile +++ b/editors/matlab-mode/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2006/02/05 23:08:57 joerg Exp $ +# $NetBSD: Makefile,v 1.10 2008/03/03 18:25:52 jlam Exp $ # DISTNAME= matlab.el @@ -15,6 +15,8 @@ MAINTAINER= dmcmahill@NetBSD.org HOMEPAGE= http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=104&objectType=file COMMENT= Matlab mode for Emacs +PKG_DESTDIR_SUPPORT= user-destdir + WRKSRC= ${WRKDIR} DIST_SUBDIR= ${BASEPKGNAME} @@ -35,7 +37,7 @@ do-build: done do-install: - ${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/${PKGBASE:C|^xemacs-||} - cd ${WRKSRC} && ${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} ${EMACS_LISPPREFIX}/${PKGBASE} + ${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}/${PKGBASE:C|^xemacs-||} + cd ${WRKSRC} && ${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} ${DESTDIR}${EMACS_LISPPREFIX}/${PKGBASE} .include "../../mk/bsd.pkg.mk" |