summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-25 04:16:05 -0500
committermidipix <writeonce@midipix.org>2018-12-25 05:13:52 -0500
commit6b9097998b0406335b74c95ca98d16f6b2bb2dcb (patch)
tree71a684bb2cef5a1c18698b1fe2f7ffa8a651af87 /configure
parentbb7c09867ede0de8162f2926ef23cb1cf4150c7e (diff)
downloadmdso-6b9097998b0406335b74c95ca98d16f6b2bb2dcb.tar.bz2
mdso-6b9097998b0406335b74c95ca98d16f6b2bb2dcb.tar.xz
build system: Makefile.in: always include cfgdefs.mk & usrdefs.mk.
The purpose of this commit is twofold; from the user's perspective, this provides a consistent experience whenever building a sofort-based project; and from the developer's perspective, this provides an easy way to test cfgdefs.mk even before the writing and/or integration of cfgdefs.sh.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 9 insertions, 4 deletions
diff --git a/configure b/configure
index 96ab8a7..e88666c 100755
--- a/configure
+++ b/configure
@@ -63,13 +63,18 @@ init_vars()
# project-specific config definitions
if [ _$mb_use_custom_cfgdefs = _yes ]; then
- cat < /dev/null > cfgdefs.mk
+ cat $mb_project_dir/sofort/cfgdefs.in \
+ > cfgdefs.mk
+ else
+ printf '%s %s\n\n' \
+ '# this project does not include' \
+ 'a custom config step.' \
+ > cfgdefs.mk
+ cat $mb_project_dir/sofort/cfgdefs.in >> cfgdefs.mk
fi
# user build-time overrides
- if [ _$mb_use_custom_usrdefs = _yes ]; then
- touch usrdefs.mk
- fi
+ touch usrdefs.mk
# project
mb_nickname=$NICKNAME