Fixup Makefile

Remove ifndef: ?= can be used instead
Add package to .phony
This commit is contained in:
morganamilo 2018-09-23 21:52:06 +01:00
parent f495b1a33e
commit 8b325ce704
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

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)