mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-09-01 04:14:15 -04:00
14 lines
295 B
Makefile
14 lines
295 B
Makefile
.PHONY: build install-deps install-deps-go
|
|
VERSION := $(shell git describe --tags 2> /dev/null || git rev-parse --short HEAD)
|
|
|
|
all: install-deps build
|
|
|
|
build:
|
|
go build -ldflags "-X github.com/mrusme/neonmodem/config.VERSION=$(VERSION)"
|
|
|
|
install-deps: install-deps-go
|
|
|
|
install-deps-go:
|
|
go get
|
|
|