summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2021-10-23 12:36:42 -0400
committerAndrew Cady <d@cryptonomic.net>2021-10-23 12:36:42 -0400
commit1c35165652fae8410eec8c8bb31ef86ddec8ec6a (patch)
tree2575162cc25c9100576735ce199e2fb7de128b22 /Makefile
parent3781d6ad65e30c6fbfdd6964301f24adcfc95286 (diff)
move files to src/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b203340..4983669 100644
--- a/Makefile
+++ b/Makefile
@@ -18,11 +18,14 @@ USER_SSH_CONFIG_DIR = ~$(USER)/.ssh
18shared: install 18shared: install
19 git config core.self-forge true 19 git config core.self-forge true
20 20
21SRC = src
22SOURCES = $(addprefix $(SRC), AnonymousAccessCommand anonymous-access.conf AuthorizedKeysCommand)
23
21install: 24install:
22 install -t $(USER_SSH_CONFIG_DIR) AnonymousAccessCommand 25 install -t $(USER_SSH_CONFIG_DIR) $(SRC)/AnonymousAccessCommand
23 $(ROOT_INSTALL) -d "$(SSH_CONFIG_DIR)" "$(SSHD_CONFIG_DIR)" "$(SSH_LIB_DIR)" || true 26 $(ROOT_INSTALL) -d "$(SSH_CONFIG_DIR)" "$(SSHD_CONFIG_DIR)" "$(SSH_LIB_DIR)" || true
24 $(ROOT_INSTALL) -m0644 -t "$(SSHD_CONFIG_DIR)" anonymous-access.conf || true 27 $(ROOT_INSTALL) -m0644 -t "$(SSHD_CONFIG_DIR)" $(SRC)/anonymous-access.conf || true
25 $(ROOT_INSTALL) -t "$(SSH_LIB_DIR)" AuthorizedKeysCommand || true 28 $(ROOT_INSTALL) -t "$(SSH_LIB_DIR)" $(SRC)/AuthorizedKeysCommand || true
26 [ -e "$(SSH_LIB_DIR)"/AuthorizedKeysCommand ] || $(SUDO) ln -s -t /etc/ssh "$(SSH_LIB_DIR)"/AuthorizedKeysCommand 29 [ -e "$(SSH_LIB_DIR)"/AuthorizedKeysCommand ] || $(SUDO) ln -s -t /etc/ssh "$(SSH_LIB_DIR)"/AuthorizedKeysCommand
27 30
28README.html: README.md 31README.html: README.md