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

From: Roman Zippel (zippel@linux-m68k.org)
Date: Wed Apr 10 2002 - 14:52:57 EST


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/



This archive was generated by hypermail 2b29 : Mon Apr 15 2002 - 22:00:17 EST