Skip to content

Commit 4180f06

Browse files
authored
Merge pull request #169 from budlabs/next
got_func fix
2 parents 64cf43d + 64a7696 commit 4180f06

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

share/Makefile

+11-8
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,19 @@ function_files := \
7070
# this is needed for _init.sh (BASE) to know it needs
7171
# to be rebuilt on this event.
7272

73-
ifneq ($(wildcard $(CACHE_DIR)/got_func),)
74-
ifneq ($(wildcard $(FUNCS_DIR)/*),)
75-
ifneq ($(file < $(CACHE_DIR)/got_func), 1)
76-
$(shell echo 1 > $(CACHE_DIR)/got_func)
73+
ifeq ($(wildcard $(CACHE_DIR)/got_func),)
74+
$(shell mkdir -p $(CACHE_DIR)/options)
75+
$(shell echo 0 > $(CACHE_DIR)/got_func)
7776
endif
77+
78+
ifneq ($(wildcard $(FUNCS_DIR)/*),)
79+
ifneq ($(file < $(CACHE_DIR)/got_func), 1)
80+
$(shell echo 1 > $(CACHE_DIR)/got_func)
81+
endif
7882
else
79-
ifneq ($(file < $(CACHE_DIR)/got_func), 0)
80-
$(shell echo 0 > $(CACHE_DIR)/got_func)
81-
endif
82-
endif
83+
ifneq ($(file < $(CACHE_DIR)/got_func), 0)
84+
$(shell echo 0 > $(CACHE_DIR)/got_func)
85+
endif
8386
endif
8487

8588
clean:

0 commit comments

Comments
 (0)