mirror of
https://github.com/mrusme/neonmodem.git
synced 2025-10-21 19:44:27 -04:00
Added Makefile
This commit is contained in:
13
Makefile
Normal file
13
Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
.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/gobbs/config.VERSION=$(VERSION)"
|
||||
|
||||
install-deps: install-deps-go
|
||||
|
||||
install-deps-go:
|
||||
go get
|
||||
|
||||
Reference in New Issue
Block a user