mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
17 lines
338 B
Makefile
17 lines
338 B
Makefile
.PHONY: build clean deploy gomodgen
|
|
|
|
build: gomodgen
|
|
export GO111MODULE=on
|
|
env GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/main.go
|
|
env GOOS=linux go build -ldflags="-s -w" -o bin/world world/main.go
|
|
|
|
clean:
|
|
rm -rf ./bin ./vendor go.sum
|
|
|
|
deploy: clean build
|
|
sls deploy --verbose
|
|
|
|
gomodgen:
|
|
chmod u+x gomod.sh
|
|
./gomod.sh
|