summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b35e8c5..43b72aa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,22 @@
1all: control 1.DEFAULT_GOAL = all
2.PHONY: all install postinst clean
3 2
4prefix = /usr/local 3prefix ?= /usr/local
5exec_prefix = $(prefix) 4exec_prefix ?= $(prefix)
6bindir = $(exec_prefix)/bin 5bindir ?= $(exec_prefix)/bin
7bin_PROGRAMS := $(wildcard bin/*) 6bin_PROGRAMS := $(wildcard bin/*)
8export prefix exec_prefix bindir bin_PROGRAMS 7export prefix exec_prefix bindir bin_PROGRAMS
9 8
9include src/control.mk
10
10DD_USER = dyndns 11DD_USER = dyndns
11DD_GROUP = dyndns 12DD_GROUP = dyndns
12 13
13include src/control.mk 14
15
16
17.PHONY: all install clean
18
19all: control
14 20
15clean: clean-equivs 21clean: clean-equivs
16 22
@@ -27,7 +33,6 @@ else
27 $(MAKE) ~$(DD_USER)/.ssh/authorized_keys 33 $(MAKE) ~$(DD_USER)/.ssh/authorized_keys
28endif 34endif
29 35
30
31define dyndns_authorized_keys_contents 36define dyndns_authorized_keys_contents
32command="$(bindir)/samizdat-ssh-command $(bindir)/cryptonomic-dyndns-command",no-port-forwarding * Samizdat - YES WE CAN 37command="$(bindir)/samizdat-ssh-command $(bindir)/cryptonomic-dyndns-command",no-port-forwarding * Samizdat - YES WE CAN
33endef 38endef