-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 1.42 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
run:
@echo "Running main application"
@go run ./cmd/spring-initializer/
compile-current:
@echo "Compiling for current OS and Platform"
@go build -o ./bin/spring-initializer ./cmd/spring-initializer/
compile-mac-m1:
@echo "Compiling for mac-m1"
@GOOS=darwin GOARCH=arm64 go build -o bin/spring-initializer-mac-m1 ./cmd/spring-initializer/
compile-linux-386:
@echo "Compiling for linux-386"
@GOOS=linux GOARCH=386 go build -o bin/spring-initializer-linux-386 ./cmd/spring-initializer/
compile-linux-amd64:
@echo "Compiling for linux-amd64"
@GOOS=linux GOARCH=amd64 go build -o bin/spring-initializer-linux-amd64 ./cmd/spring-initializer/
compile-windows-386:
@echo "Compiling for windows-386"
@GOOS=windows GOARCH=386 go build -o bin/spring-initializer-windows-386.exe ./cmd/spring-initializer/
compile-windows-amd64:
@echo "Compiling for windows-amd64"
@GOOS=windows GOARCH=amd64 go build -o bin/spring-initializer-windows-amd64.exe ./cmd/spring-initializer/
compile-freebsd-386:
@echo "Compiling for freebsd-386"
@GOOS=freebsd GOARCH=386 go build -o bin/spring-initializer-freebsd-386 ./cmd/spring-initializer/
compile-freebsd-amd64:
@echo "Compiling for freebsd-amd64"
@GOOS=freebsd GOARCH=amd64 go build -o bin/spring-initializer-freebsd-amd64 ./cmd/spring-initializer/
compile-all: compile-linux-386 compile-linux-amd64 compile-windows-386 compile-windows-amd64 compile-freebsd-386 compile-freebsd-amd64 compile-mac-m1