Tool for assembling API/source/binary archives

Issue #2339
This commit is contained in:
Norman Feske
2017-03-28 18:41:41 +02:00
committed by Christian Helmuth
parent 1ed5110d55
commit 39eff7f249
21 changed files with 1756 additions and 0 deletions

32
tool/depot/mk/common.inc Normal file
View File

@@ -0,0 +1,32 @@
#
# \brief Common environment
# \author Norman Feske
# \date 2014-05-27
#
SHELL := bash
VERBOSE ?= @
ECHO := echo -e
HASHSUM := sha1sum
MAKEFLAGS += --no-print-directory
BRIGHT_COL ?= \x1b[01;33m
DARK_COL ?= \x1b[00;33m
DEFAULT_COL ?= \x1b[0m
MSG_PREFIX_TXT := $(DARK_COL)$(TARGET) $(DEFAULT_COL)
MSG_PREFIX := $(ECHO) "$(MSG_PREFIX_TXT)"
define NEWLINE
endef
EMPTY :=
#
# Utility to read content from a file if it exists and the given file name
# is not empty.
#
file_content = $(if $(wildcard $1),$(shell cat $1),)