$(MODDIR)/make/defs.mk: Split off defs-cpp.mk with C++ definitions

C++ definitions are numerous, and they shouldn't pollute variable space and
performance outside of directories containing C++ files. This commit pushes
them into a defs-cpp.mk file.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-02-27 20:46:54 +00:00
commit 316435bb78
19 changed files with 681 additions and 673 deletions

View file

@ -2,10 +2,12 @@
# -- What do I know about myself?
VERSION_FILE ?= $(firstword $(wildcard VERSION) $(TOPDIR)/VERSION)
ifeq ($(wildcard $(VERSION_FILE)),)
DEVELOPMENT ?= true
else
DEVELOPMENT ?= $(shell grep -q 'dev' $(VERSION_FILE) && echo true)
ifndef DEVELOPMENT
ifeq ($(wildcard $(VERSION_FILE)),)
DEVELOPMENT := true
else
DEVELOPMENT := $(shell grep -q 'dev' $(VERSION_FILE) && echo true)
endif
endif
# -- Conclude the build system's location: