summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-05-21 09:02:12 +0000
committerBernhard Reutner-Fischer2006-05-21 09:02:12 +0000
commit30ead9a9b9d589b3b0f54ce89c339862209ce67c (patch)
tree33aae5d2e7e5f095f2a2f93a23c6ab962d789ae2
parent1a5eb4682039099dec8d41cbdb6299023e15b4c2 (diff)
downloadbusybox-30ead9a9b9d589b3b0f54ce89c339862209ce67c.zip
busybox-30ead9a9b9d589b3b0f54ce89c339862209ce67c.tar.gz
- do not create usage_compressed.h if CONFIG_FEATURE_COMPRESS_USAGE is not set
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ea9a45d..80dabcc 100644
--- 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)