- do not create usage_compressed.h if CONFIG_FEATURE_COMPRESS_USAGE is not set
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 21 May 2006 09:02:12 +0000 (09:02 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 21 May 2006 09:02:12 +0000 (09:02 -0000)
Makefile

index ea9a45dbd74c2bd24ecddb8823f9cc1d5c77cbc7..80dabcc8e3780237378edf0fa1274bb25d946d99 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -414,12 +414,15 @@ include/bbconfigopts.h: .config
        $(Q)$(top_srcdir)/scripts/config/mkconfigs > $@
 endif
 
-scripts/usage: $(top_srcdir)/scripts/usage.c .config
-       $(do_link.h) -I$(top_srcdir)/include
+ifeq ($(strip $(CONFIG_FEATURE_COMPRESS_USAGE)),y)
+scripts/usage: $(top_srcdir)/scripts/usage.c
+       $(do_link.h)
 
 DEP_INCLUDES += include/usage_compressed.h
-include/usage_compressed.h: .config scripts/usage
+
+include/usage_compressed.h: scripts/usage .config
        $(Q)$(SHELL) $(top_srcdir)/scripts/usage_compressed "$(top_srcdir)/scripts" > $@
+endif # CONFIG_FEATURE_COMPRESS_USAGE
 
 depend dep: .depend
 .depend: scripts/bb_mkdep $(DEP_INCLUDES)