Make Documenation depend on headers_install
authorPeter Foley <pefoley2@pefoley.com>
Thu, 25 Sep 2014 18:23:58 +0000 (11:23 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 26 Sep 2014 09:03:01 +0000 (11:03 +0200)
Cc: rdunlap@infradead.org
Cc: linux-doc@vger.kernel.org
Cc: sudeep.dutt@intel.com
Cc: nikhil.rao@intel.com
Cc: ashutosh.dixit@intel.com
Cc: akpm@linux-foundation.org
Cc: gregkh@linuxfoundation.org
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Makefile

index a192280a883d139594c7ec4aa1bd9914e206a0d0..994b77b51c455e34cb2cff8f1a86788843ea3c41 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1532,6 +1532,8 @@ endif
        $(cmd_crmodverdir)
        $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
        $(build)=$(build-dir)
+# Make sure the latest headers are built for Documentation
+Documentation/: headers_install
 %/: prepare scripts FORCE
        $(cmd_crmodverdir)
        $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \