diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/emacs/modules.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/editors/emacs/modules.mk b/editors/emacs/modules.mk index 8f416ad3a0a..c0e0a6f8ede 100644 --- a/editors/emacs/modules.mk +++ b/editors/emacs/modules.mk @@ -1,4 +1,4 @@ -# $NetBSD: modules.mk,v 1.17 2013/02/17 07:33:28 dholland Exp $ +# $NetBSD: modules.mk,v 1.18 2013/03/10 14:12:05 obache Exp $ # # This Makefile fragment handles Emacs Lisp Packages (== ELPs). # @@ -199,6 +199,11 @@ # Possible values: # "", "@comment" # +# FOR_emacs_no_byte_compile +# Description: +# For .elc file of .el file marked as "no-byte-compile: t" +# Possible values: +# "", "@comment" .if !defined(EMACS_MK) EMACS_MK= # defined @@ -333,6 +338,8 @@ _EMACS_PLIST_SUBST+= EMACS_ETCPREFIX=${EMACS_ETCPREFIX:C|^${PREFIX}/||} _EMACS_PLIST_SUBST+= EMACS_INFOPREFIX=${EMACS_INFOPREFIX:C|^${PREFIX}/||} _EMACS_PLIST_SUBST+= EMACS_LISPPREFIX=${EMACS_LISPPREFIX:C|^${PREFIX}/||} +_EMACS_PLIST_SUBST+= FOR_emacs_no_byte_compile="${${EMACS_VERSION_MAJOR}>22:?@comment :}" + PLIST_SUBST+= ${_EMACS_PLIST_SUBST} PRINT_PLIST_AWK+= { gsub(/${EMACS_LISPPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, \ |