-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (31 loc) · 823 Bytes
/
Makefile
File metadata and controls
33 lines (31 loc) · 823 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
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=howl-slack
BINARY_UNIX=$(BINARY_NAME)_unix
BINARY_ARM=$(BINARY_NAME)_arm
all: build
build:
$(GOBUILD) -o $(BINARY_NAME) -v
clean:
$(GOCLEAN)
rm -f $(BINARY_NAME)
rm -f $(BINARY_UNIX)
run:
$(GOBUILD) -o $(BINARY_NAME) -v ./...
./$(BINARY_NAME)
deps:
$(GOGET) github.com/tkanos/gonfig
$(GOGET) github.com/faiface/beep
$(GOGET) github.com/aws/aws-sdk-go/aws
$(GOGET) github.com/nlopes/slack
$(GOGET) github.com/hajimehoshi/oto
$(GOGET) github.com/jfreymuth/oggvorbis
$(GOGET) github.com/pkg/errors
build-linux:
GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_UNIX) -v
build-raspberry:
CC=arm-linux-gnueabihf-gcc GOOS=linux GOARCH=arm GOARM=6 CGO_ENABLED=1 $(GOBUILD) -o $(BINARY_ARM) -v