1
0
mirror of https://github.com/mrusme/neonmodem.git synced 2024-06-16 06:25:23 +00:00

Added Makefile

This commit is contained in:
マリウス 2022-12-29 14:32:57 -05:00
parent 3d924e808b
commit fbc0cea73a
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F

13
Makefile Normal file
View 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