USER_OBJS_DIR = $(USER_BUILD_DIR)/$(RELATIVE_DIR)
KERN_OBJS_DIR = $(KERN_BUILD_DIR)/$(RELATIVE_DIR)
-.PHONY: dep subdirs clean clean-custom cleandepend
+.PHONY: dep subdirs clean clean-custom cleandepend check-dir
# Some support to serialize some targets for parallel make
ifneq ($(OMK_SERIALIZE_INCLUDED),y)
-include-pass: $(check-dir)
+include-pass: check-dir
library-pass: include-pass
binary-pass: library-pass
kernel-lib-pass: include-pass
OTHER_PASSES = clean install include-pass
$(eval $(call omk_pass_template,$(OTHER_PASSES),$(USER_OBJS_DIR),,always))
-# Create directories only for the first time
-ifndef CHECK_DIR_DONE
-check-dir = check-dir
-CHECK_DIR_DONE = y
-endif
-export CHECK_DIR_DONE
-
check-dir:
@$(call mkdir_def,$(USER_BUILD_DIR))
@$(call mkdir_def,$(KERN_BUILD_DIR))
touch -t 200001010101 $(KERN_LIB_DIR)/kernel.mk ; \
fi
-default: $(check-dir) include-pass library-pass binary-pass
+default: include-pass library-pass binary-pass
ifndef OMIT_KERNEL_PASSES
# Also make kernel passes if not disabled
default: kernel-lib-pass kernel-pass
USER_OBJS_DIR = $(USER_BUILD_DIR)/$(RELATIVE_DIR)
+.PHONY: check-dir
+
# Some support to serialize some targets for parallel make
ifneq ($(OMK_SERIALIZE_INCLUDED),y)
-include-pass: $(check-dir)
+include-pass: check-dir
library-pass: include-pass
binary-pass: library-pass
@$(call mkdir_def,$(USER_BIN_DIR))
@$(call mkdir_def,$(USER_UTILS_DIR))
-# Create directories only for the first time
-ifndef CHECK_DIR_DONE
-check-dir = check-dir
-CHECK_DIR_DONE = y
-endif
-export CHECK_DIR_DONE
-
-
include-pass-local:
$(call include-pass-template,$(USER_INCLUDE_DIR),include)
$(tar_EMBEDFILES:%=$(USER_OBJS_DIR)/%_tarfile)
-default: $(check-dir) include-pass library-pass binary-pass
+default: include-pass library-pass binary-pass
# Local Variables:
# mode:makefile
# specified, then the value of DEFAULT_LD_SCRIPT_VARIANT from config.target is used.
# PREFIX_DIR .. Prefix to directories in _compiled and _build. Used in config.omk.
+.PHONY: check-dir
+
# Some support to serialize some targets for parallel make
ifneq ($(OMK_SERIALIZE_INCLUDED),y)
-include-pass: $(check-dir)
+include-pass: check-dir
library-pass: include-pass
binary-pass utils-pass: library-pass
@$(call mkdir_def,$(USER_BIN_DIR))
@$(call mkdir_def,$(USER_UTILS_DIR))
-# Create directories only for the first time
-ifndef CHECK_DIR_DONE
-check-dir = check-dir
-CHECK_DIR_DONE = y
-endif
-export CHECK_DIR_DONE
-
# Which passes to pass
-default: $(check-dir) include-pass library-pass binary-pass utils-pass
+default: include-pass library-pass binary-pass utils-pass
# Local Variables:
# mode:makefile
# xxx_SOURCES .. list of specific target sources
# INCLUDES .. additional include directories and defines for user-space
+.PHONY: check-dir
+
# Some support to serialize some targets for parallel make
ifneq ($(OMK_SERIALIZE_INCLUDED),y)
-include-pass: $(check-dir)
+include-pass: check-dir
library-pass: include-pass
binary-pass: library-pass
kernel-lib-pass: include-pass
$(eval $(call omk_pass_template, library-pass,$(USER_OBJS_DIR),USER_RULE_TEMPLATES=y,$(lib_LIBRARIES)$(shared_LIBRARIES)))
$(eval $(call omk_pass_template, binary-pass, $(USER_OBJS_DIR),USER_RULE_TEMPLATES=y,$(bin_PROGRAMS)$(utils_PROGRAMS)))
-
-# Create directories only for the first time
-ifndef CHECK_DIR_DONE
-check-dir = check-dir
-CHECK_DIR_DONE = y
-endif
-export CHECK_DIR_DONE
-
check-dir:
@$(call mkdir_def,$(USER_BUILD_DIR))
@$(call mkdir_def,$(USER_INCLUDE_DIR))
@$(call mkdir_def,$(USER_UTILS_DIR))
-default: $(check-dir) include-pass library-pass binary-pass
+default: include-pass library-pass binary-pass
# Local Variables:
# mode:makefile