-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 791 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 791 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
qa: analyze test
analyze:
@go vet ./...
test:
@go test -cover ./...
clean:
@rm -rf build/
build-ui:
@cd ui && npm run build
build: clean build-ui
@GOOS=darwin GOARCH=amd64 go build -o ./build/techlounge-darwin-amd64 main.go
@GOOS=darwin GOARCH=arm64 go build -o ./build/techlounge-darwin-arm64 main.go
@GOOS=linux GOARCH=amd64 go build -o ./build/techlounge-linux-amd64 main.go
@GOOS=linux GOARCH=arm64 go build -o ./build/techlounge-linux-arm64 main.go
@GOOS=windows GOARCH=amd64 go build -o ./build/techlounge-windows-amd64.exe main.go
@GOOS=windows GOARCH=arm64 go build -o ./build/techlounge-windows-arm64.exe main.go
build-docker:
@docker build -t thenativeweb/techlounge .
.PHONY: analyze \
build \
build-docker \
build-ui \
clean \
qa \
test