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