Fix Makefile

This commit is contained in:
Torjus Håkestad 2022-02-09 15:15:36 +01:00
parent ecc7f9bdc0
commit 329d93a759

View File

@ -5,7 +5,7 @@ NAME = apiary
INSTALL_PREFIX ?= /usr/local INSTALL_PREFIX ?= /usr/local
VERSION = $(shell cat version.go |grep "var Version"| cut -d "=" -f2| tr -d "\" ") VERSION = $(shell cat version.go |grep "Version"| head -n 1 |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)