Re: [patch] 2.4.19-pre6 standardize {aic7xxx,aicasm}/Makefile

Roman Zippel (zippel@linux-m68k.org)
Wed, 10 Apr 2002 21:52:57 +0200


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/