generated from noobj/Best-README-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 1.83 KB
/
Makefile
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
.PHONY: build clean deploy
swimbuild:
env GOARCH=amd64 GOOS=linux go build -o bin/dailyfetch cmd/swimming/dailyfetch/main.go
env GOARCH=amd64 GOOS=linux go build -o bin/crowdscraper cmd/swimming/crowdscraper/main.go
env GOARCH=amd64 GOOS=linux go build -o bin/swimnotify cmd/swimming/notify/main.go
env GOARCH=amd64 GOOS=linux go build -o bin/bot_commands_handler cmd/swimming/bot-commands-handler/main.go
build:
env GOARCH=amd64 GOOS=linux go build -o bin/fetchentries cmd/ahorro/fetchentries/main.go
env GOARCH=amd64 GOOS=linux go build -o bin/login cmd/ahorro/login/main.go
env GOARCH=amd64 GOOS=linux go build -o bin/refresh cmd/ahorro/refresh/main.go
env GOARCH=amd64 GOOS=linux go build -o bin/sync_receiver cmd/ahorro/sync/receiver/main.go
env GOARCH=amd64 GOOS=linux go build -o bin/sync_callback cmd/ahorro/sync/callback/main.go
env GOARCH=amd64 GOOS=linux go build -o bin/sync_checker cmd/ahorro/sync/checker/main.go
env GOARCH=amd64 GOOS=linux go build -o bin/sync_handler cmd/ahorro/sync/handler/*
debug_build:
env GOARCH=amd64 GOOS=linux go build -gcflags "all=-N -l" -o bin/dailyfetch cmd/swimming/dailyfetch/main.go
env GOARCH=amd64 GOOS=linux go build -gcflags "all=-N -l" -o bin/crowdscraper cmd/swimming/crowdscraper/main.go
env GOARCH=amd64 GOOS=linux go build -gcflags "all=-N -l" -o bin/fetchentries cmd/ahorro/fetchentries/main.go
env GOARCH=amd64 GOOS=linux go build -gcflags "all=-N -l" -o bin/login cmd/ahorro/login/main.go
env GOARCH=amd64 GOOS=linux go build -gcflags "all=-N -l" -o bin/refresh cmd/ahorro/refresh/main.go
env GOARCH=amd64 GOOS=linux go build -gcflags "all=-N -l" -o bin/sync_receiver cmd/ahorro/sync/receiver/main.go
env GOARCH=amd64 GOOS=linux go build -gcflags "all=-N -l" -o bin/sync_callback cmd/ahorro/sync/callback/main.go
clean:
rm -rf ./bin ./vendor Gopkg.lock
deploy: clean build
sls deploy --verbose