-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
48 lines (43 loc) · 1.13 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
VERSION=$(shell git describe --tags)
TALOS_VERSION=$(shell go list -m github.com/siderolabs/talos | awk '{sub(/^v/, "", $$NF); print $$NF}')
generate:
go generate
build:
go build -ldflags="-X 'main.Version=$(VERSION)'"
import: import-internal import-commands
import-commands:
go run tools/import_commands.go --talos-version v$(TALOS_VERSION) \
bootstrap \
containers \
dashboard \
disks \
dmesg \
events \
get \
health \
image \
kubeconfig \
list \
logs \
memory \
mounts \
netstat \
pcap \
processes \
read \
reboot \
reset \
restart \
rollback \
service \
shutdown \
stats \
time \
version
import-internal:
rm -rf internal/pkg internal/app
wget -O- https://github.com/siderolabs/talos/archive/refs/tags/v$(TALOS_VERSION).tar.gz | tar --strip=1 -xzf- \
talos-$(TALOS_VERSION)/internal/app \
talos-$(TALOS_VERSION)/internal/pkg
rm -rf internal/app/init/ internal/pkg/rng/ internal/pkg/tui/
sed -i 's|github.com/siderolabs/talos/internal|github.com/aenix-io/talm/internal|g' `grep -rl 'github.com/siderolabs/talos/internal' internal`