summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Fox2006-07-06 20:00:43 +0000
committerPaul Fox2006-07-06 20:00:43 +0000
commite3324502a505168c399eede556114ecd886b8db7 (patch)
tree27d199f901a06c8834a9032001fea02298547ed0
parent4ae905a31cc57ea4a835ed0cc4489e81ab9a7524 (diff)
downloadbusybox-e3324502a505168c399eede556114ecd886b8db7.zip
busybox-e3324502a505168c399eede556114ecd886b8db7.tar.gz
fix dependencies so that compressed usage gets rebuilt if
a) include/usage.h is changed, and b) after "make clean".
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e5f31d8..3d3a24b 100644
--- a/Makefile
+++ b/Makefile
@@ -436,13 +436,16 @@ endif
ifeq ($(strip $(CONFIG_FEATURE_COMPRESS_USAGE)),y)
USAGE_BIN:=scripts/usage
-$(USAGE_BIN): $(top_srcdir)/scripts/usage.c .config
+$(USAGE_BIN): $(top_srcdir)/scripts/usage.c .config \
+ $(top_srcdir)/include/usage.h
$(do_link.h)
DEP_INCLUDES += include/usage_compressed.h
-include/usage_compressed.h: .config $(USAGE_BIN) $(top_srcdir)/scripts/usage_compressed
- $(Q)SED="$(SED)" $(SHELL) $(top_srcdir)/scripts/usage_compressed "$(top_builddir)/scripts" > $@
+include/usage_compressed.h: .config $(USAGE_BIN) \
+ $(top_srcdir)/scripts/usage_compressed
+ $(Q)SED="$(SED)" $(SHELL) $(top_srcdir)/scripts/usage_compressed \
+ "$(top_builddir)/scripts" > $@
endif # CONFIG_FEATURE_COMPRESS_USAGE
# workaround alleged bug in make-3.80, make-3.81
@@ -470,7 +473,8 @@ clean:
docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \
docs/busybox.net/BusyBox.html busybox.links \
libbusybox.so* \
- .config.old busybox busybox_unstripped
+ .config.old busybox busybox_unstripped \
+ include/usage_compressed.h scripts/usage
- rm -r -f _install testsuite/links
- find . -name .\*.flags -o -name \*.o -o -name \*.om -o -name \*.syn \
-o -name \*.os -o -name \*.osm -o -name \*.a | xargs rm -f