From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Wightman Subject: Re: Not overwriting unchanged source code files when tangling Date: Fri, 18 Nov 2011 11:28:29 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRSEp-0001zv-Kt for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 12:28:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RRSEo-00055N-ES for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 12:28:31 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:47160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RRSEo-00055I-3i for emacs-orgmode@gnu.org; Fri, 18 Nov 2011 12:28:30 -0500 Received: by ywp17 with SMTP id 17so3356404ywp.0 for ; Fri, 18 Nov 2011 09:28:29 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Holger Hoefling , emacs-orgmode@gnu.org On Fri, Nov 18, 2011 at 11:02 AM, Carsten Dominik wrote: > How about changing the make file so that the dependence is on the Org file, not on the source file? > You could then arrange for make to call emacs in batch-mode to tangle the source file and then compile it? The original question was trying to avoid recompiling everything generated from a tangle if the content didn't actually change. Because retangling the source rewrites /all/ of the files, and resets the dates, even if nothing has changed, make will then rebuild everything that was tangled, not just the partial set of tangled files that actually changed. Brian