-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 727 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 727 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
33
34
35
36
.PHONY: gomodgen deploy delete build run clean
run: build
dist/cli -text "$(TEXT)"
build:
go build \
-trimpath \
-ldflags "-s -w -extldflags '-static'" \
-o dist/cli \
./cmd/cli && \
chmod +x ./dist/cli
build/aws:
mkdir -p "functions" && \
go build \
-trimpath \
-ldflags "-s -w -extldflags '-static'" \
-o functions/aws \
./cmd/aws && \
chmod +x ./functions/aws
clean:
rm -rf ./dist && rm cool_img.png
docker/run:
sh docker_run.sh "$(TEXT)"
gomodgen:
GO111MODULE=on go mod init
gcp/deploy:
gcloud functions deploy printer --entry-point Printer --runtime go113 --trigger-http --max-instances 1 --allow-unauthenticated --memory 128MB --timeout 15
gcp/delete:
gcloud functions delete printer