]> git.lizzy.rs Git - rust.git/blob - tests/run-make/emit-shared-files/Makefile
Rollup merge of #106407 - mejrs:attr_check, r=compiler-errors
[rust.git] / tests / run-make / emit-shared-files / Makefile
1 include ../../run-make-fulldeps/tools.mk
2
3 INVOCATION_ONLY = $(TMPDIR)/invocation-only
4 TOOLCHAIN_ONLY = $(TMPDIR)/toolchain-only
5 ALL_SHARED = $(TMPDIR)/all-shared
6
7 all: invocation-only toolchain-only all-shared
8
9 invocation-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
24 toolchain-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
35 all-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 ]