summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-23 23:31:09 +0000
committermidipix <writeonce@midipix.org>2019-10-23 23:32:54 +0000
commit5aabb244e0eab9b007d618f656508b62c963c575 (patch)
tree1e086572ebd3e1c72ab2e37e1be842e741f75ca7
parente78e0e488224b10267bcb687b60bd326b7d33922 (diff)
downloadbfirm-5aabb244e0eab9b007d618f656508b62c963c575.tar.bz2
bfirm-5aabb244e0eab9b007d618f656508b62c963c575.tar.xz
build system: configure: do not create cfgdefs.mk and userdefs.mk with --help.
-rwxr-xr-xconfigure36
1 files changed, 18 insertions, 18 deletions
diff --git a/configure b/configure
index f01191b..3944c1b 100755
--- a/configure
+++ b/configure
@@ -99,24 +99,6 @@ init_vars()
. "$mb_config"
fi
- # project-specific config definitions
- if [ _$mb_use_custom_cfgdefs = _yes ]; then
- cat $sfrt_cfgdefs_in > cfgdefs.mk
- else
- printf '%s %s\n\n' \
- '# this project does not include' \
- 'a custom config step.' \
- > cfgdefs.mk
- cat $sfrt_cfgdefs_in >> cfgdefs.mk
-
- if [ -f $mb_project_dir/project/cfgdefs.in ]; then
- cat $mb_project_dir/project/cfgdefs.in >> cfgdefs.mk
- fi
- fi
-
- # user build-time overrides
- touch usrdefs.mk
-
# project
mb_nickname=$NICKNAME
mb_source_dir=$SOURCE_DIR
@@ -238,6 +220,24 @@ verify_source_directory()
common_defaults()
{
+ # project-specific config definitions
+ if [ _$mb_use_custom_cfgdefs = _yes ]; then
+ cat $sfrt_cfgdefs_in > cfgdefs.mk
+ else
+ printf '%s %s\n\n' \
+ '# this project does not include' \
+ 'a custom config step.' \
+ > cfgdefs.mk
+ cat $sfrt_cfgdefs_in >> cfgdefs.mk
+
+ if [ -f $mb_project_dir/project/cfgdefs.in ]; then
+ cat $mb_project_dir/project/cfgdefs.in >> cfgdefs.mk
+ fi
+ fi
+
+ # user build-time overrides
+ touch usrdefs.mk
+
# git
if [ -n "$mb_source_dir" ]; then
if [ -d "$mb_source_dir/.git" ]; then