-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
48 lines (36 loc) · 1.17 KB
/
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
42
43
44
45
46
47
48
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
.github-release:
@echo Downloading github-release
@curl -sL https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 | tar xjO > .github-release.tmp
@@chmod +x .github-release.tmp
@./.github-release.tmp -v
@mv .github-release.tmp .github-release
.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/ twic
tmux a -d -t twic
help:
@./scripts/help
release: .github-release
./scripts/release
.DEFAULT_GOAL := ci
.PHONY: .dapper .github-release .tmass $(TARGETS) clean dev help release