All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roman Zippel <zippel@linux-m68k.org>
To: Keith Owens <kaos@ocs.com.au>
Cc: "Justin T. Gibbs" <gibbs@scsiguy.com>, linux-kernel@vger.kernel.org
Subject: Re: [patch] 2.4.19-pre6 standardize {aic7xxx,aicasm}/Makefile
Date: Wed, 10 Apr 2002 21:52:57 +0200	[thread overview]
Message-ID: <3CB49819.140EEC01@linux-m68k.org> (raw)
In-Reply-To: <2317.1018406503@kao2.melbourne.sgi.com>

Hi,

Keith Owens wrote:

>     foo_files := $(srcfile foo-gen) $(srcfile foo.out_shipped)
>     $(objfile foo_sum.d): $(srcfile foo_sum) $(foo_files)

Why don't we use a script like this:

set -e 
src=$1
dst=$2
shift 2

test -f $dst && tail -1 $dst | sed 's,/\* \(.*\) \*/,\1,' | md5sum -c &&
touch $dst && exit 0
echo "$@"
"$@"
echo "/* $(md5sum $src) */" >> $dst

Then just call it with:
	<script> <src> <dst> <build command>

This is much simpler and also it also gets rid of these small checksum
files.

bye, Roman

  parent reply	other threads:[~2002-04-10 19:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-06 10:06 [patch] 2.4.19-pre6 standardize {aic7xxx,aicasm}/Makefile Keith Owens
2002-04-06 19:58 ` Justin T. Gibbs
2002-04-06 23:00   ` Keith Owens
2002-04-08  2:51     ` Justin T. Gibbs
2002-04-08  3:54       ` Keith Owens
2002-04-08  4:27         ` Justin T. Gibbs
2002-04-10  2:41           ` Keith Owens
2002-04-10 15:52             ` Justin T. Gibbs
2002-04-10 19:52             ` Roman Zippel [this message]
2002-04-11  0:04               ` Keith Owens
2002-04-11 12:42                 ` Roman Zippel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CB49819.140EEC01@linux-m68k.org \
    --to=zippel@linux-m68k.org \
    --cc=gibbs@scsiguy.com \
    --cc=kaos@ocs.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.