Fix makefile for updated version stuff

This commit is contained in:
Torjus Håkestad 2021-04-14 17:32:31 +02:00
parent f4afd8df62
commit a2ffbad4a3

View File

@ -5,7 +5,7 @@ NAME = apiary
INSTALL_PREFIX ?= /usr/local INSTALL_PREFIX ?= /usr/local
VERSION = $(shell cat version.go |grep "Version"| cut -d "=" -f2| tr -d "\" ") VERSION = $(shell cat version.go |grep "var Version"| cut -d "=" -f2| tr -d "\" ")
ARCH = $(shell go env | grep GOHOSTARCH | cut -d"=" -f2 | tr -d "\"") ARCH = $(shell go env | grep GOHOSTARCH | cut -d"=" -f2 | tr -d "\"")
OS = $(shell go env | grep GOHOSTOS | cut -d"=" -f2 | tr -d "\"") OS = $(shell go env | grep GOHOSTOS | cut -d"=" -f2 | tr -d "\"")
GIT_COMMIT := $(shell git rev-parse --short HEAD) GIT_COMMIT := $(shell git rev-parse --short HEAD)