-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (30 loc) · 868 Bytes
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
TARGETS := $(shell ls scripts | grep -vE 'clean|dev|help|release')
TMUX := $(shell command -v tmux 2> /dev/null)
.dapper:
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m|sed 's/v7l//'` > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper
.tmass:
@echo Downloading tmass
@curl -sL https://github.com/juliengk/tmass/releases/download/0.3.0/tmass -o .tmass.tmp
@@chmod +x .tmass.tmp
@./.tmass.tmp version
@mv .tmass.tmp .tmass
$(TARGETS): .dapper
./.dapper $@
clean:
@./scripts/clean
dev: .dapper .tmass
ifndef TMUX
$(error "tmux is not available, please install it")
endif
./.tmass load -l scripts/dev/tmux/ nfs
tmux a -d -t nfsvol
help:
@./scripts/help
release:
./scripts/release
.DEFAULT_GOAL := ci
.PHONY: .dapper .tmass $(TARGETS) clean dev help release