aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b13f79323..77c25742b 100644
--- a/Makefile
+++ b/Makefile
@@ -415,17 +415,21 @@ include/bbconfigopts.h: .config
415endif 415endif
416 416
417ifeq ($(strip $(CONFIG_FEATURE_COMPRESS_USAGE)),y) 417ifeq ($(strip $(CONFIG_FEATURE_COMPRESS_USAGE)),y)
418scripts/usage: $(top_srcdir)/scripts/usage.c 418USAGE_BIN:=scripts/usage
419$(USAGE_BIN): $(top_srcdir)/scripts/usage.c
419 $(do_link.h) 420 $(do_link.h)
420 421
421DEP_INCLUDES += include/usage_compressed.h 422DEP_INCLUDES += include/usage_compressed.h
422 423
423include/usage_compressed.h: scripts/usage .config 424include/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" > $@
425endif # CONFIG_FEATURE_COMPRESS_USAGE 426endif # CONFIG_FEATURE_COMPRESS_USAGE
426 427
428# workaround alleged bug in make-3.80, make-3.81
429.NOTPARALLEL: .depend
430
427depend dep: .depend 431depend 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