aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-03-16 22:11:24 -0600
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>2003-03-16 22:11:24 -0600
commit20810f64428df908ce5c86174d8076363af2949e (patch)
tree04d998ca313565275c5ed5f7c5f849562432c3f1 /Makefile
parent5ebe2675fad72d7f5e92ffbd69e2e3a118b925e4 (diff)
downloadhistory-20810f64428df908ce5c86174d8076363af2949e.tar.gz
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).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 81ad69972ec52..fb07f438239d1 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 \