]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm/tools/Makefile
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
[karo-tx-linux.git] / arch / arm / tools / Makefile
index cd60a81163e938a78b55b40fa9df6009408f5b57..6e4cd1867a9f5e915e31bc10395655931fcf18b6 100644 (file)
@@ -4,7 +4,10 @@
 # Copyright (C) 2001 Russell King
 #
 
-include/generated/mach-types.h: $(src)/gen-mach-types $(src)/mach-types
-       $(kecho) '  Generating $@'
-       @mkdir -p $(dir $@)
-       $(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; }
+quiet_cmd_gen_mach = GEN     $@
+      cmd_gen_mach = mkdir -p $(dir $@) && \
+                    $(AWK) -f $(filter-out $(PHONY),$^) > $@ || \
+                    { rm -f $@; /bin/false; }
+
+include/generated/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE
+       $(call if_changed,gen_mach)