diff options
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -415,17 +415,21 @@ include/bbconfigopts.h: .config | |||
415 | endif | 415 | endif |
416 | 416 | ||
417 | ifeq ($(strip $(CONFIG_FEATURE_COMPRESS_USAGE)),y) | 417 | ifeq ($(strip $(CONFIG_FEATURE_COMPRESS_USAGE)),y) |
418 | scripts/usage: $(top_srcdir)/scripts/usage.c | 418 | USAGE_BIN:=scripts/usage |
419 | $(USAGE_BIN): $(top_srcdir)/scripts/usage.c | ||
419 | $(do_link.h) | 420 | $(do_link.h) |
420 | 421 | ||
421 | DEP_INCLUDES += include/usage_compressed.h | 422 | DEP_INCLUDES += include/usage_compressed.h |
422 | 423 | ||
423 | include/usage_compressed.h: scripts/usage .config | 424 | include/usage_compressed.h: .config $(USAGE_BIN) |
424 | $(Q)$(SHELL) $(top_srcdir)/scripts/usage_compressed "$(top_srcdir)/scripts" > $@ | 425 | $(Q)$(SHELL) $(top_srcdir)/scripts/usage_compressed "$(top_builddir)/scripts" > $@ |
425 | endif # CONFIG_FEATURE_COMPRESS_USAGE | 426 | endif # CONFIG_FEATURE_COMPRESS_USAGE |
426 | 427 | ||
428 | # workaround alleged bug in make-3.80, make-3.81 | ||
429 | .NOTPARALLEL: .depend | ||
430 | |||
427 | depend dep: .depend | 431 | depend dep: .depend |
428 | .depend: scripts/bb_mkdep $(DEP_INCLUDES) | 432 | .depend: scripts/bb_mkdep $(USAGE_BIN) $(DEP_INCLUDES) |
429 | $(disp_gen) | 433 | $(disp_gen) |
430 | $(Q)rm -f .depend | 434 | $(Q)rm -f .depend |
431 | $(Q)mkdir -p include/config | 435 | $(Q)mkdir -p include/config |