summaryrefslogtreecommitdiffstats
path: root/retiolum/Makefile
blob: 85020c9f9f3d0107be59243db3eb7c8ff52b1628 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.phony: update it all so install

all: 
	cat Makefile

it: so
so: it

/etc/tinc/retiolum/hosts:
	cd $(dir $@) && git clone https://github.com/krebscode/hosts

#TODO conflicting 
update: /etc/tinc/retiolum/hosts
	cd $< && git pull

install: 
	scripts/tinc_setup/install.sh

autohosts: 
	@echo creating Magic
	bin/update_tinc_hosts "create magic" || true
	@echo adding hosts
	bin/update_tinc_hosts restart

arch-install: update install arch-autostart autohosts

arch-autostart:
	make -C scripts/autostart arch