Browse Source

Merge pull request #723 from Morganamilo/makefile

Fixup Makefile
Anna 6 years ago
parent
commit
1f5ff02398
1 changed files with 2 additions and 4 deletions
  1. 2 4
      Makefile

+ 2 - 4
Makefile

@@ -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)