X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=init%2FMakefile;h=633a268d270d3cc8bfa906c1a22476caa9645360;hb=131c1a2b6eef87485f7e280817d97615ea2a1551;hp=9cd871ce57847439d865c64444c54607048a8c43;hpb=a7ec3f5289681e9d63b65db5f56857f998812b4b;p=linux-2.6 diff --git a/init/Makefile b/init/Makefile index 9cd871ce57..633a268d27 100644 --- a/init/Makefile +++ b/init/Makefile @@ -15,6 +15,14 @@ clean-files := ../include/linux/compile.h # dependencies on generated files need to be listed explicitly -$(obj)/main.o: include/linux/compile.h $(obj)/version.o: include/linux/compile.h +# compile.h changes depending on hostname, generation number, etc, +# so we regenerate it always. +# mkcompile_h will make sure to only update the +# actual file if its content has changed. + +include/linux/compile.h: FORCE + @echo ' CHK $@' + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ \ + "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CONFIG_PREEMPT)" "$(CC) $(CFLAGS)"