X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=scripts%2FKbuild.include;h=525bff667a528404ea887b57b4723096780d59bc;hb=0521e8be211cd20d547bff9da2534b7ed6f2c1b9;hp=46bf1a073f5dd44acb1c227fb55c86928ee21f43;hpb=e3ed513bcf0097c0b8a1f1b4d791a8d0d8933b3b;p=uclinux-h8%2Flinux.git diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 46bf1a073f5d..525bff667a52 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -41,11 +41,11 @@ kecho := $($(quiet)kecho) ### # filechk is used to check if the content of a generated file is updated. # Sample usage: -# define filechk_sample -# echo $KERNELRELEASE -# endef -# version.h : Makefile +# +# filechk_sample = echo $(KERNELRELEASE) +# version.h: FORCE # $(call filechk,sample) +# # The rule defined shall write to stdout the content of the new file. # The existing file will be compared with the new one. # - If no file exist it is created @@ -56,7 +56,7 @@ kecho := $($(quiet)kecho) define filechk $(Q)set -e; \ mkdir -p $(dir $@); \ - $(filechk_$(1)) > $@.tmp; \ + { $(filechk_$(1)); } > $@.tmp; \ if [ -r $@ ] && cmp -s $@ $@.tmp; then \ rm -f $@.tmp; \ else \