mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
doc/local.mk: Add manual-html-open phony target for auto-opening the browser (#10308)
This commit is contained in:
parent
37f8edce99
commit
c0b6907ccd
2 changed files with 11 additions and 3 deletions
|
@ -175,6 +175,16 @@ $(d)/src/SUMMARY-rl-next.md: $(d)/src/release-notes/rl-next.md
|
|||
# Generate the HTML manual.
|
||||
.PHONY: manual-html
|
||||
manual-html: $(docdir)/manual/index.html
|
||||
|
||||
# Open the built HTML manual in the default browser.
|
||||
manual-html-open: $(docdir)/manual/index.html
|
||||
@echo " OPEN " $<; \
|
||||
xdg-open $< \
|
||||
|| open $< \
|
||||
|| { \
|
||||
echo "Could not open the manual in a browser. Please open '$<'" >&2; \
|
||||
false; \
|
||||
}
|
||||
install: $(docdir)/manual/index.html
|
||||
|
||||
# Generate 'nix' manpages.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue