From 80c7fb273d8e710ea174cde389ccea199e8a754b Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 3 Mar 2008 18:25:52 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- editors/matlab-mode/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'editors/matlab-mode') 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" -- cgit v1.2.3