Skip to content

Commit 9b301fe

Browse files
committed
Makefile: use 'open' on Darwin, xdg-open elsewhere for viewdocs
1 parent a60e651 commit 9b301fe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ docsite/source/index.rst: docsite/source/index.rst.in README.rst VERSION
7878
$(ASCII2MAN)
7979

8080
viewdocs: docs
81-
xdg-open docsite/build/html/index.html
81+
@if [ "$$(uname)" = "Darwin" ]; then \
82+
open docsite/build/html/index.html; \
83+
else \
84+
xdg-open docsite/build/html/index.html; \
85+
fi
8286

8387
viewcover:
8488
xdg-open cover/index.html

0 commit comments

Comments
 (0)