summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-03-27 13:12:04 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-03-27 13:12:04 +0100
commit00de588babe4efbdec52e34035252c86ee310961 (patch)
tree397b4a018cc9d93412ed4c44f3218d83edd2e83a /Makefile
parentaa7a3807a718cca2343ac9df84c40a02c7c6cf55 (diff)
Fix syntax-highlighting of C snippets in local documentation.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e02162b7..96fe9820 100644
--- a/Makefile
+++ b/Makefile
@@ -64,10 +64,11 @@ examples:
# Documentation.
.PHONY: doc
doc:
- RUSTDOCFLAGS="$$RUSTDOCFLAGS --html-in-header doc/highlight.js/9.12.0/inc.html" \
+ sed 's|"/|"file://$(shell pwd)/doc/|' doc/highlight.js/9.12.0/inc.html \
+ > $(CARGO_TARGET_DIR)/inc.html
+ RUSTDOCFLAGS="$$RUSTDOCFLAGS --html-in-header $(CARGO_TARGET_DIR)/inc.html" \
CARGO_TARGET_DIR=$(CARGO_TARGET_DIR) \
$(CARGO) doc $(CARGO_FLAGS) --no-deps --all
- cp --recursive doc/highlight.js $(CARGO_TARGET_DIR)/doc
# Installation.
.PHONY: build-release