CM/Makefile
2022-02-24 16:57:53 +08:00

18 lines
492 B
Makefile

CM_TOP_BUILDDIR = .
include $(CM_TOP_BUILDDIR)/build/Makefile.global
ifndef CM_VERSION_STR
PROJECT_NAME = CM
COMMIT_ID = $(shell git rev-parse HEAD | cut -b 1-8)
COMPILE_TIME = $(shell date "+%Y-%m-%d %H:%M:%S")
export CM_VERSION_STR = ($(PROJECT_NAME) build $(COMMIT_ID)) compiled at $(COMPILE_TIME) $(BUILD_TYPE)
$(info CM_VERSION_STR=$(CM_VERSION_STR))
endif
SUBDIRS = src
# Supress parallel build to avoid depencies in the subdirectories.
.NOTPARALLEL:
$(recurse)