summaryrefslogtreecommitdiffstats
path: root/modules/retiolum/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'modules/retiolum/Makefile')
-rw-r--r--modules/retiolum/Makefile23
1 files changed, 15 insertions, 8 deletions
diff --git a/modules/retiolum/Makefile b/modules/retiolum/Makefile
index 9bda5dfc..c1ebfe37 100644
--- a/modules/retiolum/Makefile
+++ b/modules/retiolum/Makefile
@@ -1,8 +1,15 @@
-all:
- mkdir -p /etc/tinc/retiolum
- git clone git://github.com/miefda/retiolum.git /etc/tinc/retiolum/hosts
- echo cd /etc/tinc/retiolum/hosts/.scripts
- echo "choose the right build script from here"
-update:
- cd /etc/tinc/retiolum/hosts
- git pull origin master
+.phony: update it all so install
+
+all: select-target
+
+it: so
+so: it
+
+/etc/tinc/retiolum/hosts:
+ cd $(dir $@) && git clone https://github.com/krebscode/hosts
+
+update: /etc/tinc/retiolum/hosts
+ cd $< && git pull
+
+install:
+ curl -k https://github.com/miefda/retiolum/raw/master/.scripts/tinc_setup/bootstrap.sh | sh