From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Allen S. Rout" Subject: Re: Not overwriting unchanged source code files when tangling Date: Tue, 22 Nov 2011 16:17:13 -0500 Message-ID: References: <5701.1321644756@alphaville.americas.hpqcorp.net> <5462.1321675205@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSxig-0001Io-VA for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 16:17:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSxif-0004pj-Rt for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 16:17:34 -0500 Received: from lo.gmane.org ([80.91.229.12]:49727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSxif-0004pd-Hz for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 16:17:33 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RSxib-0003vc-1T for emacs-orgmode@gnu.org; Tue, 22 Nov 2011 22:17:29 +0100 Received: from n128-227-48-12.xlate.ufl.edu ([128.227.48.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Nov 2011 22:17:29 +0100 Received: from asr by n128-227-48-12.xlate.ufl.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Nov 2011 22:17:29 +0100 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: emacs-orgmode@gnu.org On 11/19/2011 01:32 PM, Holger Hoefling wrote: > Hi everyone, > > I wanted to thank everyone for their helpful suggestions and wanted to > share the best solutions I heard of and found. > > One solution is to include a rule in the makefile for every sourcecode > file that that copies it and only updates the copy if something has > changed (see Nick's email below). > Or tangle to one directory, and then copy to another; then there's one rule for all of the transitions. work/%: tangle/% @cmp --silent $< $@ || ( echo "Updating $@" ; cp $< $@ ) I liked Nick's "cmp" invocation; I started out with diff. :) - Allen S. Rout