-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 849 Bytes
/
Makefile
File metadata and controls
34 lines (25 loc) · 849 Bytes
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
TARGETS := $(shell ls scripts | grep -vE 'clean|dev|help|release')
.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.6.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
$(TARGETS): .dapper
./.dapper $@
clean:
@./scripts/clean
dev: .dapper
./.dapper -f Dockerfile.dev -m bind -s
help:
@./scripts/help
release: .github-release
./scripts/release
.DEFAULT_GOAL := ci
.PHONY: .dapper .github-release $(TARGETS) clean dev help release