mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
projects.mk, topdir.mk: Minor code beautification
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
4d8ff72147
commit
14c451854b
2 changed files with 7 additions and 3 deletions
|
|
@ -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)/..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue