2022-08-22 19:00:00 -05:00
|
|
|
include ../../run-make-fulldeps/tools.mk
|
2021-03-25 11:46:35 -05:00
|
|
|
|
2021-03-31 10:35:57 -05:00
|
|
|
INVOCATION_ONLY = $(TMPDIR)/invocation-only
|
2021-03-25 11:46:35 -05:00
|
|
|
TOOLCHAIN_ONLY = $(TMPDIR)/toolchain-only
|
|
|
|
ALL_SHARED = $(TMPDIR)/all-shared
|
|
|
|
|
2021-03-31 10:35:57 -05:00
|
|
|
all: invocation-only toolchain-only all-shared
|
2021-03-25 11:46:35 -05:00
|
|
|
|
2021-03-31 10:35:57 -05:00
|
|
|
invocation-only:
|
2021-03-31 16:23:32 -05:00
|
|
|
$(RUSTDOC) -Z unstable-options --emit=invocation-specific --output $(INVOCATION_ONLY) --resource-suffix=-xxx --theme y.css --extend-css z.css x.rs
|
2021-03-31 10:35:57 -05:00
|
|
|
[ -e $(INVOCATION_ONLY)/search-index-xxx.js ]
|
|
|
|
[ -e $(INVOCATION_ONLY)/settings.html ]
|
|
|
|
[ -e $(INVOCATION_ONLY)/x/all.html ]
|
|
|
|
[ -e $(INVOCATION_ONLY)/x/index.html ]
|
2021-03-31 16:23:32 -05:00
|
|
|
[ -e $(INVOCATION_ONLY)/theme-xxx.css ] # generated from z.css
|
2021-03-31 10:35:57 -05:00
|
|
|
! [ -e $(INVOCATION_ONLY)/storage-xxx.js ]
|
2022-04-21 06:07:14 -05:00
|
|
|
! [ -e $(INVOCATION_ONLY)/SourceSerif4-It.ttf.woff2 ]
|
2021-03-25 11:46:35 -05:00
|
|
|
|
2021-03-31 16:23:32 -05:00
|
|
|
# FIXME: this probably shouldn't have a suffix
|
|
|
|
[ -e $(INVOCATION_ONLY)/y-xxx.css ]
|
|
|
|
# FIXME: this is technically incorrect (see `write_shared`)
|
|
|
|
! [ -e $(INVOCATION_ONLY)/main-xxx.js ]
|
|
|
|
|
2021-03-25 11:46:35 -05:00
|
|
|
toolchain-only:
|
2021-03-31 16:23:32 -05:00
|
|
|
$(RUSTDOC) -Z unstable-options --emit=toolchain-shared-resources --output $(TOOLCHAIN_ONLY) --resource-suffix=-xxx --extend-css z.css x.rs
|
2022-10-24 03:28:55 -05:00
|
|
|
[ -e $(TOOLCHAIN_ONLY)/static.files/storage-*.js ]
|
|
|
|
[ -e $(TOOLCHAIN_ONLY)/static.files/SourceSerif4-It-*.ttf.woff2 ]
|
2021-03-25 11:46:35 -05:00
|
|
|
! [ -e $(TOOLCHAIN_ONLY)/search-index-xxx.js ]
|
|
|
|
! [ -e $(TOOLCHAIN_ONLY)/x/index.html ]
|
2021-03-31 16:23:32 -05:00
|
|
|
! [ -e $(TOOLCHAIN_ONLY)/theme.css ]
|
|
|
|
|
2022-10-24 03:28:55 -05:00
|
|
|
[ -e $(TOOLCHAIN_ONLY)/static.files/main-*.js ]
|
2021-03-31 16:23:32 -05:00
|
|
|
! [ -e $(TOOLCHAIN_ONLY)/y-xxx.css ]
|
2021-03-25 11:46:35 -05:00
|
|
|
|
|
|
|
all-shared:
|
2021-03-31 16:23:32 -05:00
|
|
|
$(RUSTDOC) -Z unstable-options --emit=toolchain-shared-resources,unversioned-shared-resources --output $(ALL_SHARED) --resource-suffix=-xxx --extend-css z.css x.rs
|
2022-10-24 03:28:55 -05:00
|
|
|
[ -e $(ALL_SHARED)/static.files/storage-*.js ]
|
|
|
|
[ -e $(ALL_SHARED)/static.files/SourceSerif4-It-*.ttf.woff2 ]
|
2021-03-25 11:46:35 -05:00
|
|
|
! [ -e $(ALL_SHARED)/search-index-xxx.js ]
|
|
|
|
! [ -e $(ALL_SHARED)/settings.html ]
|
|
|
|
! [ -e $(ALL_SHARED)/x ]
|
|
|
|
! [ -e $(ALL_SHARED)/src ]
|
2021-03-31 16:23:32 -05:00
|
|
|
! [ -e $(ALL_SHARED)/theme.css ]
|
|
|
|
|
2022-10-24 03:28:55 -05:00
|
|
|
[ -e $(ALL_SHARED)/static.files/main-*.js ]
|
2021-03-31 16:23:32 -05:00
|
|
|
! [ -e $(ALL_SHARED)/y-xxx.css ]
|