diff options
Diffstat (limited to 'retiolum/Makefile')
-rw-r--r-- | retiolum/Makefile | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/retiolum/Makefile b/retiolum/Makefile index 85020c9f..407d8c60 100644 --- a/retiolum/Makefile +++ b/retiolum/Makefile @@ -1,22 +1,21 @@ -.phony: update it all so install +.PHONY: update all install hosts -all: - cat Makefile +EXES := update_tinc_hosts fillxx update-retiolum-hosts -it: so -so: it +all: update links -/etc/tinc/retiolum/hosts: - cd $(dir $@) && git clone https://github.com/krebscode/hosts +links: + for x in $(EXES); do ln -vsnf ../retiolum/bin/$$x ../bin; done -#TODO conflicting -update: /etc/tinc/retiolum/hosts - cd $< && git pull +hosts: + bin/update-retiolum-hosts -install: +install: update + @# will not run automatically scripts/tinc_setup/install.sh + scripts/autostart/create-startup.sh -autohosts: +update: hosts @echo creating Magic bin/update_tinc_hosts "create magic" || true @echo adding hosts |