-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 536 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (18 loc) · 536 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
GOPKG ?= moul.io/guilhunize
DOCKER_IMAGE ?= moul/guilhunize
GOBINS ?= .
NPM_PACKAGES ?= .
LAMBDA_PORT ?= 8080
all: test install
-include rules.mk
.PHONY: netlify
netlify: lambda-build
.PHONY: lambda-build
lambda-build:
rm -rf lambda-build
cd lambda && go get
cd lambda && GOOS=linux GOARCH=amd64 $(GO) build -o ../lambda-build/guilhunize guilhunize.go
.PHONY: lambda-dev
lambda-dev: lambda-build
@echo "Open http://localhost:$(LAMBDA_PORT)/guilhunize"
sam local start-api --host=0.0.0.0 --port=$(LAMBDA_PORT) --static-dir=web