applets/applets.o must be rebuilt if usage.h is modified.
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 19 Oct 2006 22:11:06 +0000 (22:11 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 19 Oct 2006 22:11:06 +0000 (22:11 -0000)
Makefile
applets/Kbuild

index 41b2ea1035101e1aa43cf2d77fc33fa86504f40f..10392a056f51b81b7b4d4a4fb5db84b10559785a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -806,9 +806,6 @@ include/config/MARKER: scripts/basic/split-include include/autoconf.h
        @scripts/basic/split-include include/autoconf.h include/config
        @echo '  GEN     include/bbconfigopts.h'
        @$(srctree)/scripts/mkconfigs >include/bbconfigopts.h
-       @$(MAKE) $(build)=scripts
-       @echo '  GEN     include/usage_compressed.h'
-       @$(srctree)/scripts/usage_compressed include/usage_compressed.h scripts
        @touch $@
 
 # Generate some files
index 04932eec42a2e217674a526066598595d32d8a2c..9bb4b629217c417db1a88ccb63419bd706225736 100644 (file)
@@ -7,3 +7,12 @@
 obj-y:=
 obj-y  += applets.o
 obj-y  += busybox.o
+
+# Generated file needs additional love
+
+applets/applets.o: include/usage_compressed.h
+
+include/usage_compressed.h: $(srctree)/include/usage.h
+       @$(MAKE) $(build)=scripts
+       @echo '  GEN     include/usage_compressed.h'
+       @$(srctree)/scripts/usage_compressed include/usage_compressed.h scripts