mirror of
https://github.com/Jguer/yay
synced 2024-09-14 13:51:12 +00:00
Fixup Makefile
Remove ifndef: ?= can be used instead Add package to .phony
This commit is contained in:
parent
f495b1a33e
commit
8b325ce704
6
Makefile
6
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)
|
||||
|
|
Loading…
Reference in a new issue