fix: renamed project
This commit is contained in:
36
Makefile
36
Makefile
@ -1,11 +1,33 @@
|
||||
# UID/GID
|
||||
# UID or GID is the UNIX user ID or group ID of the user who executes
|
||||
# make. If the UID or GID is not passed as a make variable, an attempt
|
||||
# is made to determine it.
|
||||
UID?=$(shell id -u)
|
||||
GID?=$(shell id -g)
|
||||
|
||||
# VERSION
|
||||
# If no version is specified as a parameter of make, the last git hash
|
||||
# value is taken.
|
||||
VERSION ?= "$(shell git rev-parse --short HEAD)-git"
|
||||
|
||||
go-build-amd:
|
||||
go build -o flucky -ldflags "-X main.version=${VERSION}"
|
||||
# PHONY
|
||||
# A phony target is one that is not really the name of a file; rather it
|
||||
# is just a name for a recipe to be executed when you make an explicit
|
||||
# request.
|
||||
.PHONY: flucky flucky-amd64 flucky-arm
|
||||
|
||||
go-build-arm7:
|
||||
GOOS=linux GOARCH=arm GOARM=7 go build -o flucky -ldflags "-X main.version=${VERSION}"
|
||||
# default build
|
||||
flucky: flucky-amd64
|
||||
|
||||
pi-copy: go-build-arm7
|
||||
scp flucky poseidon:/usr/local/bin
|
||||
ssh poseidon 'chmod +x /usr/local/bin/flucky'
|
||||
# build flucky for amd64 architecture
|
||||
flucky-amd64:
|
||||
GOOS=linux \
|
||||
GOARCH=amd64 \
|
||||
go build -o flucky-amd64 -ldflags "-X main.version=${VERSION}"
|
||||
|
||||
# build flucky for arm architecture
|
||||
flucky-arm:
|
||||
GOOS=linux \
|
||||
GOARCH=arm \
|
||||
GOARM=7 \
|
||||
go build -o fctl-arm -ldflags "-X main.version=${VERSION}"
|
||||
|
Reference in New Issue
Block a user