From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: DONTCOMPILE in lisp/Makefile.in doesn't work. Date: Mon, 11 Apr 2005 17:15:48 +0200 Message-ID: <873btxmjiz.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113232604 24637 80.91.229.2 (11 Apr 2005 15:16:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2005 15:16:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 11 17:16:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DL0cL-0008Ph-U4 for ged-emacs-devel@m.gmane.org; Mon, 11 Apr 2005 17:14:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DL0CT-0002AT-KL for ged-emacs-devel@m.gmane.org; Mon, 11 Apr 2005 10:47:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DL0CF-0002A6-G4 for emacs-devel@gnu.org; Mon, 11 Apr 2005 10:47:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DL0CC-00029Y-Gi for emacs-devel@gnu.org; Mon, 11 Apr 2005 10:47:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DL0CC-00029O-Er for emacs-devel@gnu.org; Mon, 11 Apr 2005 10:47:24 -0400 Original-Received: from [194.109.24.24] (helo=smtp-vbr4.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DL0fF-0003bA-Gv for emacs-devel@gnu.org; Mon, 11 Apr 2005 11:17:25 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr4.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3BFFmui013687 for ; Mon, 11 Apr 2005 17:15:48 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DL0dg-00050P-00 for ; Mon, 11 Apr 2005 17:15:48 +0200 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 31 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:35863 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35863 Do I understand correctly that DONTCOMPILE in lisp/Makefile.in is a list of lisp files that should not be compiled? If so, it doesn't work. Here is the relevant target (the target recompile is similar): # NOTE about DONTCOMPILE: in the `echo | sort | uniq -u' we pass # $(DONTCOMPILE) twice. This is in case one of the files in DONTCOMPILE # is absent. -stef compile: $(lisp)/subdirs.el doit find $(lisp) -name "*.elc" -print | xargs chmod +w >/dev/null 2>&1; \ wd=$(lisp); $(setwins); \ elpat=`echo $$wins | tr ' ' '\012\012' | \ sed -e 's|\(.\)$$|\1/|' -e 's|^\./||' -e 's|$$|*.el|'`; \ els=`echo $$elpat $(DONTCOMPILE) $(DONTCOMPILE) $(COMPILE_FIRST) | \ tr ' ' '\012\012' | sort | uniq -u`; \ for el in $(COMPILE_FIRST) $$els; do \ if test -f $$el; \ then \ echo Compiling $$el; \ $(emacs) -f batch-byte-compile-if-not-done $$el || exit 1; \ fi \ done If I understand this correctly, the command happily tries to compile all files in DONTCOMPILE. (Most of the files don't actually get compiled because they set no-byte-compile via local variables.) Isn't it better to just do away with DONTCOMPILE and just rely on lisp files setting no-byte-compile? Lute.