-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 676 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 676 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
# serverless create -t aws-go-dep -p github.com/skyzyx/lambda-htmlmeta
all:
@cat Makefile | grep : | grep -v PHONY | grep -v @ | sed 's/:/ /' | awk '{print $$1}' | sort
#-------------------------------------------------------------------------------
.PHONY: install-deps
install-deps:
gometalinter.v2 --install
.PHONY: build
build:
go build -ldflags="-s -w" -o bin/htmlinfo main.go
.PHONY: package
package:
env GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o bin/htmlinfo main.go
.PHONY: lint
lint:
gometalinter.v2 ./main.go
#-------------------------------------------------------------------------------
.PHONY: deploy
deploy: package
sls deploy --verbose