summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-23 12:50:01 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-23 12:52:03 -0400
commit4d14156fd5b306b366b4d74e1a5bbf82e0ae081a (patch)
tree47fd2acdded79df2631b6780108fad2e73b547e0 /Makefile
parentd62afec285253371c975f95366e5bf110ff2a3ff (diff)
launch documentation by default
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d3346ed..2501da9 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,13 @@ SSHD_CONFIG_DIR = $(SSH_CONFIG_DIR)/sshd_config.d
13SSH_LIB_DIR = /usr/lib/ssh 13SSH_LIB_DIR = /usr/lib/ssh
14USER_SSH_CONFIG_DIR = ~$(USER)/.ssh 14USER_SSH_CONFIG_DIR = ~$(USER)/.ssh
15 15
16BROWSER != 2>/dev/null which xdg-open || which w3m || which links || which elinks
17
16.PHONY: install shared doc test 18.PHONY: install shared doc test
17 19
20doc: README.html
21 $(BROWSER) $<
22
18shared: install 23shared: install
19 git config core.self-forge true 24 git config core.self-forge true
20 25
@@ -28,8 +33,6 @@ install:
28 $(ROOT_INSTALL) -t "$(SSH_LIB_DIR)" $(SRC)/AuthorizedKeysCommand || true 33 $(ROOT_INSTALL) -t "$(SSH_LIB_DIR)" $(SRC)/AuthorizedKeysCommand || true
29 [ -e "$(SSH_LIB_DIR)"/AuthorizedKeysCommand ] || $(SUDO) ln -s -t /etc/ssh "$(SSH_LIB_DIR)"/AuthorizedKeysCommand 34 [ -e "$(SSH_LIB_DIR)"/AuthorizedKeysCommand ] || $(SUDO) ln -s -t /etc/ssh "$(SSH_LIB_DIR)"/AuthorizedKeysCommand
30 35
31doc: README.html
32
33README.html: README.md 36README.html: README.md
34 pandoc -t html $< > $@ 37 pandoc -t html $< > $@
35 38