aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/emacs-emcws/Makefile
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2004-01-10 14:11:29 +0800
committerpetef <petef@FreeBSD.org>2004-01-10 14:11:29 +0800
commitdf5601e46472a49811eb52af4b68929e9e652767 (patch)
treed0d74f0dd60780e35e3c52f45d4839229e00bac3 /japanese/emacs-emcws/Makefile
parentcd1c0a02837fca6ea255eaa699ff1056d90687ee (diff)
downloadfreebsd-ports-gnome-df5601e46472a49811eb52af4b68929e9e652767.tar.gz
freebsd-ports-gnome-df5601e46472a49811eb52af4b68929e9e652767.tar.zst
freebsd-ports-gnome-df5601e46472a49811eb52af4b68929e9e652767.zip
Make this port compile clean when specifying another ${PREFIX}.
PR: 61071 Submitted by: Munehiro Matsuda <haro@h4.dion.ne.jp> Approved by: maintainer
Diffstat (limited to 'japanese/emacs-emcws/Makefile')
-rw-r--r--japanese/emacs-emcws/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/japanese/emacs-emcws/Makefile b/japanese/emacs-emcws/Makefile
index ab5be349efc3..bb39c08d9aca 100644
--- a/japanese/emacs-emcws/Makefile
+++ b/japanese/emacs-emcws/Makefile
@@ -146,6 +146,12 @@ CONFIGURE_ARGS+= --with-xpg4
.endif
.endif
+.if exists(${PREFIX}/bin/emacs-${EMACS_VER})
+EMACS_BASE=${PREFIX}
+.else
+EMACS_BASE=${LOCALBASE}
+.endif
+
pre-fetch:
@${CAT} ${FILESDIR}/emcws-message
@@ -153,7 +159,7 @@ pre-build:
${FIND} ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
${RM} -rf ${WRKSRC}/info/*
@(cd ${WRKSRC}/src/../lisp; \
- ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} compile-files EMACS=${LOCALBASE}/bin/emacs-${EMACS_VER})
+ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} compile-files EMACS=${EMACS_BASE}/bin/emacs-${EMACS_VER})
@(cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} emacs)
@(cd ${WRKSRC}/src/../lisp; \
${WRKSRC}/src/emacs -batch -q -f batch-byte-compile \