-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
57 lines (48 loc) · 899 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Solus makefile
run:
@echo "Running..."
@go run main.go
@echo "Done."
generate_requirements:
@echo "Generating requirements..."
@make build
@./solus.out requirements -f gen/messages.json -o gen/generated_requirements.yaml
@make clean
@echo "Done."
generate_code:
@echo "Generating code..."
@make build
@./solus.out code -g $(shell pwd)/gen
@make clean
@echo "Done."
zip_result:
@echo "Zipping result..."
@zip -r gen.zip gen
@echo "Done."
end_to_end:
@echo "Running end to end..."
@make run
@make generate_requirements
@make generate_code
@make zip_result
@echo "Done."
build:
@echo "Building..."
@go build -o solus.out
@echo "Done."
install:
@echo "Installing..."
@go install
@echo "Done."
test:
@echo "Testing..."
@go test ./...
@echo "Done."
lint:
@echo "Linting..."
@trunk fmt
@echo "Done."
clean:
@echo "Cleaning..."
@rm -f solus.out
@echo "Done."