rust/tests/run-make/rustdoc-themes/Makefile

12 lines
436 B
Makefile
Raw Normal View History

include ../tools.mk
2019-05-24 14:04:45 -05:00
# Test that rustdoc will properly load in a theme file and display it in the theme selector.
OUTPUT_DIR := "$(TMPDIR)/rustdoc-themes"
all:
awk '/Begin theme: light/ {in_theme=1;next} /End theme:/ {in_theme=0} { if (in_theme) print }' \
< '$(S)/src/librustdoc/html/static/css/noscript.css' > '$(TMPDIR)/test.css'
$(RUSTDOC) -o $(OUTPUT_DIR) foo.rs --theme $(TMPDIR)/test.css
2019-11-18 11:53:45 -06:00
$(HTMLDOCCK) $(OUTPUT_DIR) foo.rs