diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-15 21:35:35 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-15 21:35:35 +0000 |
commit | 42f091a76120b4bf2ab7466dfaaf8907f9d9b189 (patch) | |
tree | aac37d347342f06debbf290aedc3200f0ff33846 | |
parent | 39218932b1e99be6ef91329f7fb1beeeb40941c1 (diff) | |
download | busybox-w32-42f091a76120b4bf2ab7466dfaaf8907f9d9b189.tar.gz busybox-w32-42f091a76120b4bf2ab7466dfaaf8907f9d9b189.tar.bz2 busybox-w32-42f091a76120b4bf2ab7466dfaaf8907f9d9b189.zip |
- let the scripts be prerequisites of the files the generate
- make sure that bbconfig isn't too stupid
-rw-r--r-- | Makefile | 4 | ||||
-rwxr-xr-x | scripts/config/mkconfigs | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -430,7 +430,7 @@ DEP_INCLUDES := include/bb_config.h | |||
430 | ifeq ($(strip $(CONFIG_BBCONFIG)),y) | 430 | ifeq ($(strip $(CONFIG_BBCONFIG)),y) |
431 | DEP_INCLUDES += include/bbconfigopts.h | 431 | DEP_INCLUDES += include/bbconfigopts.h |
432 | 432 | ||
433 | include/bbconfigopts.h: .config | 433 | include/bbconfigopts.h: .config $(top_srcdir)/scripts/config/mkconfigs |
434 | $(disp_gen) | 434 | $(disp_gen) |
435 | $(Q)$(top_srcdir)/scripts/config/mkconfigs > $@ | 435 | $(Q)$(top_srcdir)/scripts/config/mkconfigs > $@ |
436 | endif | 436 | endif |
@@ -442,7 +442,7 @@ $(USAGE_BIN): $(top_srcdir)/scripts/usage.c .config | |||
442 | 442 | ||
443 | DEP_INCLUDES += include/usage_compressed.h | 443 | DEP_INCLUDES += include/usage_compressed.h |
444 | 444 | ||
445 | include/usage_compressed.h: .config $(USAGE_BIN) | 445 | include/usage_compressed.h: .config $(USAGE_BIN) $(top_srcdir)/scripts/usage_compressed |
446 | $(Q)SED="$(SED)" $(SHELL) $(top_srcdir)/scripts/usage_compressed "$(top_builddir)/scripts" > $@ | 446 | $(Q)SED="$(SED)" $(SHELL) $(top_srcdir)/scripts/usage_compressed "$(top_builddir)/scripts" > $@ |
447 | endif # CONFIG_FEATURE_COMPRESS_USAGE | 447 | endif # CONFIG_FEATURE_COMPRESS_USAGE |
448 | 448 | ||
diff --git a/scripts/config/mkconfigs b/scripts/config/mkconfigs index be5d9d177..88365f62c 100755 --- a/scripts/config/mkconfigs +++ b/scripts/config/mkconfigs | |||
@@ -60,7 +60,7 @@ echo \ | |||
60 | * | 60 | * |
61 | */" | 61 | */" |
62 | 62 | ||
63 | echo "static char const bbconfig_config[] =" | 63 | echo "static const char const * bbconfig_config =" |
64 | echo "\"\\" | 64 | echo "\"\\" |
65 | echo "`sed 's/\"/\\\\\"/g' $config | grep "^#\? \?CONFIG_" | awk '{ print $0 "\\\\n\\\\" }' `" | 65 | echo "`sed 's/\"/\\\\\"/g' $config | grep "^#\? \?CONFIG_" | awk '{ print $0 "\\\\n\\\\" }' `" |
66 | echo "\";" | 66 | echo "\";" |