[sepia] 43/63: Makefile.PL: do not install .elc files if they haven't been generated

Hilko Bengen bengen at moszumanska.debian.org
Sat Aug 8 11:20:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch master
in repository sepia.

commit 841bad6b64c2d1cd22c130653f40c2d176047795
Author: Hilko Bengen <bengen at debian.org>
Date:   Sat Mar 19 23:32:11 2011 +0100

    Makefile.PL: do not install .elc files if they haven't been generated
---
 Makefile.PL | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index 101716b..ce07b8d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -131,10 +131,16 @@ END_MAKETXT
 END_MAKETXT
 
     if ( $SITE_LISP ) {
-        $maketxt .= <<"END_MAKETXT"
+        $maketxt .= <<"END_MAKETXT";
 	install -d -m755 \$(DESTDIR)$SITE_LISP
-	install -m644 *.el *.elc \$(DESTDIR)$SITE_LISP
+	install -m644 *.el \$(DESTDIR)$SITE_LISP
 END_MAKETXT
+          if ( $EMACS ) {
+              $maketxt .= <<"END_MAKETXT";
+	install -m644 *.elc \$(DESTDIR)$SITE_LISP
+END_MAKETXT
+          }
+
     } else {
         print <<'END_MSG'
 
@@ -188,8 +194,10 @@ test_for 'Time::HiRes', 'Basic command timing';
 
 $INSTALL_INFO = 'install-info';
 
-$EMACS        ||= prompt_for_emacs()
-    or warn "Disabling elisp compilation and dir detection.\n";
+if ( !defined $EMACS ) {
+    $EMACS = prompt_for_emacs()
+      or warn "Disabling elisp compilation and dir detection.\n";
+}
 $SITE_LISP    ||= prompt_for_sitelisp();
 $INFO_DIR     ||= prompt_for_infodir();
 $INSTALL_INFO ||= prompt("install-info program?", 'install-info')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/sepia.git



More information about the Pkg-perl-cvs-commits mailing list