summaryrefslogtreecommitdiffstats
path: root/retiolum/Makefile
diff options
context:
space:
mode:
authortv <tv@xso>2011-08-12 23:23:33 +0200
committertv <tv@xso>2011-08-12 23:23:33 +0200
commit2048448601aa27f993268ef67bf0eeda3625ef4e (patch)
tree1e7dcd3ec26e20e14bca59418ea3a84fbfc48fc9 /retiolum/Makefile
parent533add06bf1c5dfb2824c4f861b9288fe5448c4d (diff)
retiolum: go more enterprise
Diffstat (limited to 'retiolum/Makefile')
-rw-r--r--retiolum/Makefile22
1 files changed, 8 insertions, 14 deletions
diff --git a/retiolum/Makefile b/retiolum/Makefile
index e58e2ece..407d8c60 100644
--- a/retiolum/Makefile
+++ b/retiolum/Makefile
@@ -1,27 +1,21 @@
-RETIOLUM_HOSTS = /etc/tinc/retiolum/hosts
+.PHONY: update all install hosts
-.PHONY: update it all so install
+EXES := update_tinc_hosts fillxx update-retiolum-hosts
all: update links
-links:
- ln -sf $$PWD/bin/update_tinc_hosts ../bin/update_tinc_hosts
- ln -sf $$PWD/bin/fillxx ../bin/fillxx
-
-it: so
-so: it
-
-hosts/:
- @echo "Writing new copy of hosts"
- [ -e $(RETIOLUM_HOSTS) ] || mkdir -p $(RETIOLUM_HOSTS)
- cp -r hosts/* $(RETIOLUM_HOSTS)/
+links:
+ for x in $(EXES); do ln -vsnf ../retiolum/bin/$$x ../bin; done
+hosts:
+ bin/update-retiolum-hosts
install: update
@# will not run automatically
scripts/tinc_setup/install.sh
+ scripts/autostart/create-startup.sh
-update: hosts/
+update: hosts
@echo creating Magic
bin/update_tinc_hosts "create magic" || true
@echo adding hosts