projects.mk, topdir.mk: Minor code beautification

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-12-27 17:03:53 +00:00
commit 14c451854b
2 changed files with 7 additions and 3 deletions

View file

@ -1,8 +1,12 @@
# == Variables for inter-project-communication
# -- What do I know about myself?
VERSION_FILE ?= $(firstword $(wildcard VERSION $(TOPDIR)/VERSION))
DEVELOPMENT ?= $(shell grep -q 'dev' $(VERSION_FILE) && echo true)
VERSION_FILE ?= $(firstword $(wildcard VERSION) $(TOPDIR)/VERSION)
ifeq ($(wildcard $(VERSION_FILE)),)
DEVELOPMENT ?= true
else
DEVELOPMENT ?= $(shell grep -q 'dev' $(VERSION_FILE) && echo true)
endif
# -- Conclude the build system's location:
PROJECTS_DIR ?= $(TOPDIR)/..