diff options
author | Alexey Neyman <stilor@att.net> | 2017-04-22 19:28:50 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-04-22 19:28:50 (GMT) |
commit | 2c0fb226419507583a736818346a7d6f07eba983 (patch) | |
tree | 8f9336eaa325a91a5219abb7420e4a00cd0ce80d /Makefile.in | |
parent | 6f5afbdf82698ab0f91d5a36e7f171dd2829ec10 (diff) |
Generate config/configure.in directly
from configure rather than substitute it from Makefile. Eventually we
might want to get rid of configure.in completely, doing on-the-fly
checks at the time of `ct-ng build`, but that is left for another day.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/Makefile.in b/Makefile.in index 693e62d..4c33343 100644 --- a/Makefile.in +++ b/Makefile.in @@ -89,9 +89,6 @@ export curses_hdr := @ac_ct_curses_hdr@ export gettext := @gettext@ export CPU_COUNT := @CPU_COUNT@ -# config options to push down to kconfig -KCONFIG:= @kconfig_options@ - ############################################################################### # Non-configure variables MAN_SECTION := 1 @@ -169,8 +166,7 @@ build-bin: $(PROG_NAME) \ scripts/showConfig.sh $(call __silent,CHMOD,$^)chmod 755 $^ -build-lib: config/configure.in \ - paths.mk \ +build-lib: paths.mk \ paths.sh build-lib-kconfig: @@ -222,21 +218,6 @@ paths.mk: FORCE paths.sh: FORCE $(call __silent,GEN,$@){ $(foreach w,$(__paths_vars),$(if $($w),echo 'export $w="$(subst ','\'',$($w))"';)) :; } >$@ -config/configure.in: FORCE - $(call __silent,GEN,$@) \ - { printf "# Generated file, do not edit\n"; \ - printf "# Default values as found by ./configure\n"; \ - for var in $(KCONFIG); do \ - printf "\n"; \ - printf "config CONFIGURE_$${var%%=*}\n"; \ - if [ "$${var#*=}" = "y" ]; then \ - printf " def_bool y\n"; \ - else \ - printf " bool\n"; \ - fi; \ - done; \ - } >$@ - FORCE: #-------------------------------------- @@ -251,7 +232,6 @@ clean-bin: clean-lib: $(call __silent_rm,paths.mk paths.sh) - $(call __silent_rm,config/configure.in) clean-lib-kconfig: $(call __silent,ENTER,kconfig)$(MAKE) -C kconfig clean |