Skip to content

Commit 0919e35

Browse files
committed
---
yaml --- r: 12134 b: refs/heads/master c: 071dbfc h: refs/heads/master v: v3
1 parent abdd231 commit 0919e35

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: bd0399863fd2e012c46d0fed50e016f5dd147d82
2+
refs/heads/master: 071dbfc4781f43e6fdbb0a019d1cd46f6d249aee
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/Makefile.in

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,14 @@ STAGES = 0 1 2 3
4848
# Residual auto-configuration
4949
######################################################################
5050

51-
include config.mk
51+
# Recursive wildcard function
52+
# http://blog.jgc.org/2011/07/gnu-make-recursive-wildcard-function.html
53+
rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) \
54+
$(filter $(subst *,%,$2),$d))
5255

53-
ifdef IGNORE_MKFILES
54-
MKFILE_DEPS :=
55-
else
56-
OUR_MKFILES := Makefile config.mk $(wildcard $(CFG_SRC_DIR)/mk/*.mk)
57-
3RDPARTY_MKFILES := $(CFG_SRC_DIR)/src/libuv/Makefile \
58-
$(wildcard $(CFG_SRC_DIR)/src/libuv/*.mk)
59-
GEN_MKFILES := $(wildcard $(CFG_SRC_DIR)/mk/libuv/*/*/*) \
60-
$(wildcard $(CFG_SRC_DIR)/mk/libuv/mac/src/libuv/*) \
61-
$(wildcard $(CFG_SRC_DIR)/mk/libuv/mac/src/libuv/*) \
62-
$(wildcard $(CFG_SRC_DIR)/mk/libuv/mac/src/libuv/*)
63-
MKFILE_DEPS := $(OUR_MKFILES) $(3RDPARTY_MKFILES) $(GEN_MKFILES)
64-
endif
56+
include config.mk
6557

58+
MKFILE_DEPS := config.stamp $(call rwildcard,$(CFG_SRC_DIR)mk/,*)
6659
NON_HOST_TRIPLES = $(filter-out $(CFG_HOST_TRIPLE),$(CFG_TARGET_TRIPLES))
6760

6861
ifneq ($(MAKE_RESTARTS),)
@@ -435,12 +428,15 @@ endif
435428
ifeq ($(NEED_GIT_RECONFIG),0)
436429
else
437430
# If the submodules have changed then always execute config.mk
438-
.PHONY: config.mk
431+
.PHONY: config.stamp
439432
endif
440433

441-
config.mk: $(S)configure $(S)Makefile.in $(S)src/snapshots.txt
434+
Makefile config.mk: config.stamp
435+
436+
config.stamp: $(S)configure $(S)Makefile.in $(S)src/snapshots.txt
442437
@$(call E, cfg: reconfiguring)
443438
$(Q)$(S)configure $(CFG_CONFIGURE_ARGS)
439+
$(Q)touch $@
444440

445441

446442
######################################################################

0 commit comments

Comments
 (0)