Merge pull request #723 from Morganamilo/makefile

Fixup Makefile
This commit is contained in:
Anna 2018-09-23 22:02:54 +01:00 committed by GitHub
commit 1f5ff02398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,11 @@
.PHONY: all default install uninstall test build release clean
.PHONY: all default install uninstall test build release clean package
PREFIX := /usr
DESTDIR :=
ifndef VERSION
MAJORVERSION := 8
MINORVERSION ?= $(shell git rev-list --count master)
endif
VERSION := ${MAJORVERSION}.${MINORVERSION}
VERSION ?= ${MAJORVERSION}.${MINORVERSION}
LDFLAGS := -ldflags '-s -w -X main.version=${VERSION}'
ARCH := $(shell uname -m)