From 7b398af59d53a891b64621027ae0e820e3e7321c Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 10 Dec 2008 22:38:54 +0100 Subject: [PATCH] check-dir target converted to double-colon rule This allows easy addition of other directories of commands in config.target. --- snippets/linux | 2 +- snippets/rtems | 2 +- snippets/sdcc | 2 +- snippets/sysless | 2 +- snippets/vxworks | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/snippets/linux b/snippets/linux index 336e035..048d5ef 100644 --- a/snippets/linux +++ b/snippets/linux @@ -712,7 +712,7 @@ $(eval $(call omk_pass_template,clean,$(USER_OBJS_DIR),,always)) $(eval $(call omk_pass_template,install,$(USER_OBJS_DIR),,always)) $(eval $(call omk_pass_template,include-pass,$(USER_OBJS_DIR),USER_RULE_TEMPLATES=y,always)) -check-dir: +check-dir:: @$(call mkdir_def,$(USER_BUILD_DIR)) @$(call mkdir_def,$(KERN_BUILD_DIR)) @$(call mkdir_def,$(USER_INCLUDE_DIR)) diff --git a/snippets/rtems b/snippets/rtems index 9a51b2c..2ab968b 100644 --- a/snippets/rtems +++ b/snippets/rtems @@ -297,7 +297,7 @@ $(eval $(call omk_pass_template, binary-pass, $(USER_OBJS_DIR),USER_RULE_TEMPLAT $(eval $(call omk_pass_template,clean,$(USER_OBJS_DIR),,always)) -check-dir: +check-dir:: @$(call mkdir_def,$(USER_INCLUDE_DIR)) @$(call mkdir_def,$(USER_LIB_DIR)) @$(call mkdir_def,$(USER_BIN_DIR)) diff --git a/snippets/sdcc b/snippets/sdcc index dc6a578..952817c 100644 --- a/snippets/sdcc +++ b/snippets/sdcc @@ -358,7 +358,7 @@ clean-local: clean-custom if [ -e $(confh) ] ; then touch -t 200001010101 $(confh) ; fi ; \ ) -check-dir: +check-dir:: @$(call mkdir_def,$(USER_OBJS_DIR)) @$(call mkdir_def,$(USER_INCLUDE_DIR)) @$(call mkdir_def,$(USER_LIB_DIR)) diff --git a/snippets/sysless b/snippets/sysless index 1b02ea8..fd535f6 100644 --- a/snippets/sysless +++ b/snippets/sysless @@ -266,7 +266,7 @@ clean-local: clean-custom $(USER_OBJS_DIR)/*.map \ $(LOCAL_CONFIG_H:%=$(USER_OBJS_DIR)/%) -check-dir: +check-dir:: @$(call mkdir_def,$(USER_INCLUDE_DIR)) @$(call mkdir_def,$(USER_LIB_DIR)) @$(call mkdir_def,$(USER_BIN_DIR)) diff --git a/snippets/vxworks b/snippets/vxworks index 06c76a0..988286b 100644 --- a/snippets/vxworks +++ b/snippets/vxworks @@ -198,7 +198,7 @@ clean-local: $(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)$(test_PROGRAMS))) -check-dir: +check-dir:: @$(call mkdir_def,$(USER_BUILD_DIR)) @$(call mkdir_def,$(USER_INCLUDE_DIR)) @$(call mkdir_def,$(USER_LIB_DIR)) -- 2.39.2