Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.

21 lines
567 B
Makefile
Raw Normal View History

2017-09-22 09:44:56 -04:00
GOROOT ?= $(shell go env GOROOT)
2017-09-12 13:08:26 -04:00
GO ?= $(GOROOT)/bin/go
REPO=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
2017-09-12 13:08:26 -04:00
VERSION=$(shell $(GO) version | cut -d' ' -f3)
2017-09-12 13:08:26 -04:00
all: build
2017-09-12 13:08:26 -04:00
build: srndv2
2017-10-24 05:35:09 -04:00
srndv2:
2017-09-24 08:10:35 -04:00
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) build -ldflags "-X srnd.GitVersion=-$(shell git rev-parse --short HEAD)" -v
2017-10-13 07:58:10 -04:00
srndv2-lua:
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) build -ldflags "-X srnd.GitVersion=-$(shell git rev-parse --short HEAD)" -tags lua -v
clean:
2017-09-12 13:08:26 -04:00
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) clean -v
test:
2017-09-24 08:18:56 -04:00
GOPATH=$(REPO) GOROOT=$(GOROOT) $(GO) test srnd