Lines Matching defs:rustdoc
3 # Where to place rustdoc generated documentation
4 rustdoc_output := $(objtree)/Documentation/output/rust/rustdoc
165 # `rustdoc` did not save the target modifiers, thus workaround for
180 --crate-name $(subst rustdoc-,,$@) \
196 rustdoc: rustdoc-core rustdoc-macros rustdoc-compiler_builtins \
197 rustdoc-kernel rustdoc-pin_init rustdoc-zerocopy rustdoc-zerocopy_derive
211 $(Q)for f in $(rustdoc_output)/static.files/rustdoc-*.css; do \
214 rustdoc-proc_macro2: private rustdoc_host = yes
215 rustdoc-proc_macro2: private rustc_target_flags = $(proc_macro2-flags)
216 rustdoc-proc_macro2: $(src)/proc-macro2/lib.rs rustdoc-clean FORCE
217 +$(call if_changed,rustdoc)
219 rustdoc-quote: private rustdoc_host = yes
220 rustdoc-quote: private rustc_target_flags = $(quote-flags)
221 rustdoc-quote: private skip_flags = $(quote-skip_flags)
222 rustdoc-quote: $(src)/quote/lib.rs rustdoc-clean rustdoc-proc_macro2 FORCE
223 +$(call if_changed,rustdoc)
225 rustdoc-syn: private rustdoc_host = yes
226 rustdoc-syn: private rustc_target_flags = $(syn-flags)
227 rustdoc-syn: $(src)/syn/lib.rs rustdoc-clean rustdoc-quote FORCE
228 +$(call if_changed,rustdoc)
230 rustdoc-zerocopy_derive: private rustdoc_host = yes
231 rustdoc-zerocopy_derive: private rustc_target_flags = $(zerocopy_derive-flags) \
233 rustdoc-zerocopy_derive: $(src)/zerocopy-derive/lib.rs rustdoc-clean rustdoc-syn FORCE
234 +$(call if_changed,rustdoc)
236 rustdoc-macros: private rustdoc_host = yes
237 rustdoc-macros: private rustc_target_flags = --crate-type proc-macro \
239 rustdoc-macros: $(src)/macros/lib.rs rustdoc-clean rustdoc-proc_macro2 \
240 rustdoc-quote rustdoc-syn FORCE
241 +$(call if_changed,rustdoc)
243 rustdoc-core: private skip_flags = $(core-skip_flags)
244 rustdoc-core: private rustc_target_flags = $(core-flags)
245 rustdoc-core: $(RUST_LIB_SRC)/core/src/lib.rs rustdoc-clean FORCE
246 +$(call if_changed,rustdoc)
248 # Even if `rustdoc` targets are not kernel objects, they should still be
250 # `rustdoc` will complain about missing sanitizer flags causing an ABI mismatch.
251 rustdoc-compiler_builtins: private is-kernel-object := y
252 rustdoc-compiler_builtins: $(src)/compiler_builtins.rs rustdoc-core FORCE
253 +$(call if_changed,rustdoc)
255 rustdoc-zerocopy: private rustc_target_envs := $(zerocopy-envs)
256 rustdoc-zerocopy: private is-kernel-object := y
257 rustdoc-zerocopy: private rustc_target_flags = $(zerocopy-flags) \
258 --extend-css $(src)/zerocopy/rustdoc/style.css
259 rustdoc-zerocopy: $(src)/zerocopy/src/lib.rs rustdoc-clean rustdoc-core FORCE
260 +$(call if_changed,rustdoc)
262 rustdoc-ffi: private is-kernel-object := y
263 rustdoc-ffi: $(src)/ffi.rs rustdoc-core FORCE
264 +$(call if_changed,rustdoc)
266 rustdoc-pin_init_internal: private rustdoc_host = yes
267 rustdoc-pin_init_internal: private rustc_target_flags = $(pin_init_internal-flags) \
269 rustdoc-pin_init_internal: $(src)/pin-init/internal/src/lib.rs \
270 rustdoc-clean rustdoc-proc_macro2 rustdoc-quote rustdoc-syn FORCE
271 +$(call if_changed,rustdoc)
273 rustdoc-pin_init: private rustdoc_host = yes
274 rustdoc-pin_init: private rustc_target_flags = $(pin_init-flags) \
277 rustdoc-pin_init: $(src)/pin-init/src/lib.rs rustdoc-pin_init_internal \
278 rustdoc-macros FORCE
279 +$(call if_changed,rustdoc)
281 rustdoc-kernel: private is-kernel-object := y
282 rustdoc-kernel: private rustc_target_flags = --extern ffi --extern pin_init \
286 rustdoc-kernel: $(src)/kernel/lib.rs rustdoc-core rustdoc-ffi rustdoc-macros \
287 rustdoc-pin_init rustdoc-compiler_builtins $(obj)/$(libmacros_name) \
289 +$(call if_changed,rustdoc)
291 rustdoc-clean: FORCE