kbuild: make samples depend on headers_install
[cascardo/linux.git] / Makefile
index 64684b1..7aa6f8c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1620,7 +1620,7 @@ endif
        $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
        $(build)=$(build-dir)
 # Make sure the latest headers are built for Documentation
-Documentation/: headers_install
+Documentation/ samples/: headers_install
 %/: prepare scripts FORCE
        $(cmd_crmodverdir)
        $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \