]> git.neil.brown.name Git - history.git/commitdiff
kbuild: Fix asm/offset.h generation
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Mon, 17 Mar 2003 04:11:24 +0000 (22:11 -0600)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Mon, 17 Mar 2003 04:11:24 +0000 (22:11 -0600)
gen-asm-offsets, the most common user of the new filechk function, needs
to be fed input from $< (the first prerequisite).

Makefile

index 81ad69972ec52e5a84e1b28a15dc3ec151059f7f..fb07f438239d1b2877e83de14f9448ce746fc9b6 100644 (file)
--- 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                                    \