ide/arm/ide_arm.c: add MODULE_LICENSE
[sfrench/cifs-2.6.git] / scripts / Kbuild.include
index b96ea8d6a5ed0eb375a4db068cdb2c564407cd42..d64e6badc9427ed9d6c8a2d47652d5ecab693293 100644 (file)
@@ -39,15 +39,22 @@ escsq = $(subst $(squote),'\$(squote)',$1)
 # - If they are equal no change, and no timestamp update
 # - stdin is piped in from the first prerequisite ($<) so one has
 #   to specify a valid file as first prerequisite (often the kbuild file)
+       chk_filechk = :
+ quiet_chk_filechk = echo '  CHK     $@'
+silent_chk_filechk = :
+       upd_filechk = :
+ quiet_upd_filechk = echo '  UPD     $@'
+silent_upd_filechk = :
+
 define filechk
        $(Q)set -e;                             \
-       echo '  CHK     $@';                    \
+       $($(quiet)chk_filechk);                 \
        mkdir -p $(dir $@);                     \
        $(filechk_$(1)) < $< > $@.tmp;          \
        if [ -r $@ ] && cmp -s $@ $@.tmp; then  \
                rm -f $@.tmp;                   \
        else                                    \
-               echo '  UPD     $@';            \
+               $($(quiet)upd_filechk);         \
                mv -f $@.tmp $@;                \
        fi
 endef