From: Kai Germaschewski Date: Mon, 17 Mar 2003 04:11:24 +0000 (-0600) Subject: kbuild: Fix asm/offset.h generation X-Git-Tag: v2.5.65~6 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=20810f64428df908ce5c86174d8076363af2949e;p=history.git kbuild: Fix asm/offset.h generation gen-asm-offsets, the most common user of the new filechk function, needs to be fed input from $< (the first prerequisite). --- diff --git a/Makefile b/Makefile index 81ad69972ec5..fb07f438239d 100644 --- a/Makefile +++ b/Makefile @@ -900,8 +900,9 @@ cmd = @$(if $($(quiet)cmd_$(1)),echo ' $($(quiet)cmd_$(1))' &&) $(cmd_$(1)) # - If they are equal no change, and no timestamp update define filechk - @echo ' CHK $@'; - @set -e; $(filechk_$(1)) > $@.tmp + @set -e; \ + echo ' CHK $@'; \ + $(filechk_$(1)) < $< > $@.tmp; \ if [ -r $@ ] && cmp -s $@ $@.tmp; then \ rm -f $@.tmp; \ else \