From 298a69ba80bd17c17452ec443b7905cff161052b Mon Sep 17 00:00:00 2001 From: uebayasi Date: Mon, 13 Oct 2008 08:07:02 +0000 Subject: Introduce EMACS_BUILDLINK to decide if Emacs lisp file wrappers are really created or not. Packages that include other ELP's buildlink3.mk must define EMACS_BUILDLINK. Other packages don't create wrappers, which reduces build time a lot. --- editors/emacs/modules.mk | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'editors/emacs') diff --git a/editors/emacs/modules.mk b/editors/emacs/modules.mk index ef8acdebe5c..9461332ba1d 100644 --- a/editors/emacs/modules.mk +++ b/editors/emacs/modules.mk @@ -1,4 +1,4 @@ -# $NetBSD: modules.mk,v 1.1 2008/10/11 09:31:56 uebayasi Exp $ +# $NetBSD: modules.mk,v 1.2 2008/10/13 08:07:02 uebayasi Exp $ # # This Makefile fragment handles Emacs Lisp Packages (== ELPs). # @@ -63,6 +63,16 @@ # Default value: # emacs21, emacs21nox, emacs22, emacs22nox, emacs20, xemacs215, xemacs215nox, xemacs214, xemacs214nox # +# EMACS_BUILDLINK +# Description: +# Whether create buildlink directory of *.el / *.elc +# files. ELPs which include other ELP's buildlink3.mk +# must define this value. +# Possible values: +# , +# Default value: +# +# # Variables provided for ELPs: # # EMACS_BIN @@ -309,9 +319,11 @@ PRINT_PLIST_AWK+= { gsub(/${EMACS_LISPPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, \ # Build environment (buildlink3) # +.if defined(EMACS_BUILDLINK) _EMACS_DIR= ${BUILDLINK_DIR}/share/emacs ALL_ENV+= EMACSLOADPATH=${_EMACS_DIR}/${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}/lisp:${_EMACS_DIR}/site-lisp .include "${_EMACS_PKGDIR}/buildlink3.mk" +.endif .endif # EMACS_MK -- cgit v1.2.3