c6b42b
build system: configure: do not create cfgdefs.mk and userdefs.mk with --help.
@@ -99,24 +99,6 @@ init_vars()
|
|
99
99
|
. "$mb_config"
|
100
100
|
fi
|
101
101
|
|
102
|
-
# project-specific config definitions
|
103
|
-
if [ _$mb_use_custom_cfgdefs = _yes ]; then
|
104
|
-
cat $sfrt_cfgdefs_in > cfgdefs.mk
|
105
|
-
else
|
106
|
-
printf '%s %s\n\n' \
|
107
|
-
'# this project does not include' \
|
108
|
-
'a custom config step.' \
|
109
|
-
> cfgdefs.mk
|
110
|
-
cat $sfrt_cfgdefs_in
cfgdefs.mk
|
111
|
-
|
112
|
-
if [ -f $mb_project_dir/project/cfgdefs.in ]; then
|
113
|
-
cat $mb_project_dir/project/cfgdefs.in cfgdefs.mk
|
114
|
-
fi
|
115
|
-
fi
|
116
|
-
|
117
|
-
# user build-time overrides
|
118
|
-
touch usrdefs.mk
|
119
|
-
|
120
102
|
# project
|
121
103
|
mb_nickname=$NICKNAME
|
122
104
|
mb_source_dir=$SOURCE_DIR
|
@@ -238,6 +220,24 @@ verify_source_directory()
|
|
238
220
|
|
239
221
|
common_defaults()
|
240
222
|
{
|
223
|
+
# project-specific config definitions
|
224
|
+
if [ _$mb_use_custom_cfgdefs = _yes ]; then
|
225
|
+
cat $sfrt_cfgdefs_in > cfgdefs.mk
|
226
|
+
else
|
227
|
+
printf '%s %s\n\n' \
|
228
|
+
'# this project does not include' \
|
229
|
+
'a custom config step.' \
|
230
|
+
> cfgdefs.mk
|
231
|
+
cat $sfrt_cfgdefs_in
cfgdefs.mk
|
232
|
+
|
233
|
+
if [ -f $mb_project_dir/project/cfgdefs.in ]; then
|
234
|
+
cat $mb_project_dir/project/cfgdefs.in cfgdefs.mk
|
235
|
+
fi
|
236
|
+
fi
|
237
|
+
|
238
|
+
# user build-time overrides
|
239
|
+
touch usrdefs.mk
|
240
|
+
|
241
241
|
# git
|
242
242
|
if [ -n "$mb_source_dir" ]; then
|
243
243
|
if [ -d "$mb_source_dir/.git" ]; then
|