diff options
author | midipix <writeonce@midipix.org> | 2019-10-23 23:31:09 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-10-23 23:32:55 +0000 |
commit | d52f54c32012b59d25f759c034e928f99844cf4a (patch) | |
tree | 6e1cf13218725039a03908ef2b3fe2c89edb9e4d | |
parent | 5874317a34a866b23efe37a821c36387143d3d13 (diff) | |
download | u16ports-d52f54c32012b59d25f759c034e928f99844cf4a.tar.bz2 u16ports-d52f54c32012b59d25f759c034e928f99844cf4a.tar.xz |
build system: configure: do not create cfgdefs.mk and userdefs.mk with --help.
-rwxr-xr-x | configure | 36 |
1 files changed, 18 insertions, 18 deletions
@@ -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 |