Created
July 7, 2014 11:06
-
-
Save qianjigui/114273b5fc331eada5b6 to your computer and use it in GitHub Desktop.
Makefile_multithread_sync_file.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONFIG_LAST_TIME_FILE := $(srctree)/.compile.project.time | |
CONFIG_STAT_TIME:=$(if $(wildcard $(CONFIG_FILE)),$(shell stat -c %Y $(CONFIG_FILE)),) | |
TMP_CONFIG_LAST_TIME:=$(if $(wildcard $(CONFIG_LAST_TIME_FILE)),$(shell cat $(CONFIG_LAST_TIME_FILE)),) | |
# ...... | |
ifneq ("$(CONFIG_STAT_TIME)","$(TMP_CONFIG_LAST_TIME)") | |
$(warning "merge config and defaut config:") | |
OUT_CONFIG := $(srctree)/.config | |
xxx_config := $(call config.generate-auto-rules) | |
makeF := $(shell $(xxx_config)) | |
$(shell echo "$(CONFIG_STAT_TIME)" > $(CONFIG_LAST_TIME_FILE)) | |
endif #neq for multi threads |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment