29 lines
584 B
Makefile
29 lines
584 B
Makefile
GO_BUILD := go build \
|
|
-trimpath \
|
|
-ldflags="-w -s" \
|
|
-gcflags=-trimpath="$(shell pwd)" \
|
|
-asmflags=-trimpath="$(shell pwd)" \
|
|
|
|
SOURCES := $(wildcard *.go) \
|
|
$(wildcard app/*.go) \
|
|
$(wildcard app/*/*.go) \
|
|
$(wildcard hardware/*.go) \
|
|
$(wildcard hardware/*/*.go) \
|
|
$(wildcard hardware/*/*/*.go) \
|
|
$(wildcard config/*.go) \
|
|
$(wildcard internal/*/*.go) \
|
|
$(wildcard sound/*.go) \
|
|
$(wildcard player/*.go) \
|
|
$(wildcard player/*/*.go)
|
|
|
|
BINARY := beatglow
|
|
|
|
.PHONY:
|
|
$(BINARY): $(SOURCES)
|
|
GOOS=linux GOARCH=arm $(GO_BUILD) -o $@ ./cmd/$(BINARY)
|
|
|
|
clean:
|
|
$(RM) $(BINARY)
|
|
|
|
|