Skip to content

Commit

Permalink
Adds cross-compile command in Make
Browse files Browse the repository at this point in the history
  • Loading branch information
gosom committed May 1, 2024
1 parent 510c59e commit aa05c2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cache/
vendor
bin
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
APP_NAME := google_maps_scraper
VERSION := 1.2.1

default: help

# generate help info from comments: thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
Expand Down Expand Up @@ -25,3 +28,8 @@ test-cover-report: ## an html report of the coverage statistics

lint: ## runs the linter
golangci-lint -v run ./...

cross-compile: ## cross compiles the application
GOOS=linux GOARCH=amd64 go build -o bin/$(APP_NAME)-${VERSION}-linux-amd64
GOOS=darwin GOARCH=amd64 go build -o bin/$(APP_NAME)-${VERSION}-darwin-amd64
GOOS=windows GOARCH=amd64 go build -o bin/$(APP_NAME)-${VERSION}-windows-amd64

0 comments on commit aa05c2f

Please sign in to comment.