fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.9 KiB46 linesraw
1include ../tools.mk
2
3INVOCATION_ONLY = $(TMPDIR)/invocation-only
4TOOLCHAIN_ONLY = $(TMPDIR)/toolchain-only
5ALL_SHARED = $(TMPDIR)/all-shared
6
7all: invocation-only toolchain-only all-shared
8
9invocation-only:
10	$(RUSTDOC) -Z unstable-options --emit=invocation-specific --output $(INVOCATION_ONLY) --resource-suffix=-xxx --theme y.css --extend-css z.css x.rs
11	[ -e $(INVOCATION_ONLY)/search-index-xxx.js ]
12	[ -e $(INVOCATION_ONLY)/settings.html ]
13	[ -e $(INVOCATION_ONLY)/x/all.html ]
14	[ -e $(INVOCATION_ONLY)/x/index.html ]
15	[ -e $(INVOCATION_ONLY)/theme-xxx.css ] # generated from z.css
16	! [ -e $(INVOCATION_ONLY)/storage-xxx.js ]
17	! [ -e $(INVOCATION_ONLY)/SourceSerif4-It.ttf.woff2 ]
18
19	# FIXME: this probably shouldn't have a suffix
20	[ -e $(INVOCATION_ONLY)/y-xxx.css ]
21	# FIXME: this is technically incorrect (see `write_shared`)
22	! [ -e $(INVOCATION_ONLY)/main-xxx.js ]
23
24toolchain-only:
25	$(RUSTDOC) -Z unstable-options --emit=toolchain-shared-resources --output $(TOOLCHAIN_ONLY) --resource-suffix=-xxx --extend-css z.css x.rs
26	[ -e $(TOOLCHAIN_ONLY)/static.files/storage-*.js ]
27	[ -e $(TOOLCHAIN_ONLY)/static.files/SourceSerif4-It-*.ttf.woff2 ]
28	! [ -e $(TOOLCHAIN_ONLY)/search-index-xxx.js ]
29	! [ -e $(TOOLCHAIN_ONLY)/x/index.html ]
30	! [ -e $(TOOLCHAIN_ONLY)/theme.css ]
31
32	[ -e $(TOOLCHAIN_ONLY)/static.files/main-*.js ]
33	! [ -e $(TOOLCHAIN_ONLY)/y-xxx.css ]
34
35all-shared:
36	$(RUSTDOC) -Z unstable-options --emit=toolchain-shared-resources,unversioned-shared-resources --output $(ALL_SHARED) --resource-suffix=-xxx --extend-css z.css x.rs
37	[ -e $(ALL_SHARED)/static.files/storage-*.js ]
38	[ -e $(ALL_SHARED)/static.files/SourceSerif4-It-*.ttf.woff2 ]
39	! [ -e $(ALL_SHARED)/search-index-xxx.js ]
40	! [ -e $(ALL_SHARED)/settings.html ]
41	! [ -e $(ALL_SHARED)/x ]
42	! [ -e $(ALL_SHARED)/src ]
43	! [ -e $(ALL_SHARED)/theme.css ]
44
45	[ -e $(ALL_SHARED)/static.files/main-*.js ]
46	! [ -e $(ALL_SHARED)/y-xxx.css ]