summaryrefslogtreecommitdiff
path: root/applets/Kbuild
diff options
context:
space:
mode:
authorDenis Vlasenko2007-11-29 03:31:20 +0000
committerDenis Vlasenko2007-11-29 03:31:20 +0000
commit745cd17926a9d75cdd6482d5ce58227b492d1ebe (patch)
tree568f3236704000eed61d3460f9eef92e9535b746 /applets/Kbuild
parentc253778de92441b61806e1e4e7806e91f17ea50f (diff)
downloadbusybox-745cd17926a9d75cdd6482d5ce58227b492d1ebe.zip
busybox-745cd17926a9d75cdd6482d5ce58227b492d1ebe.tar.gz
Further optimize applet tables; prettify build output
text data bss dec hex filename 775923 929 9100 785952 bfe20 busybox_old 775565 929 9100 785594 bfcba busybox_unstripped
Diffstat (limited to 'applets/Kbuild')
-rw-r--r--applets/Kbuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/applets/Kbuild b/applets/Kbuild
index b9dba03..ef4b76f 100644
--- a/applets/Kbuild
+++ b/applets/Kbuild
@@ -14,20 +14,20 @@ always:= $(hostprogs-y)
# Generated files need additional love
-quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h
- cmd_gen_usage_compressed = $(srctree)/applets/usage_compressed include/usage_compressed.h applets
-
HOSTCFLAGS_usage.o = -I$(srctree)/include
-applets/applets.o: include/usage_compressed.h include/applet_tables.h
+applets/applets.o: include/usage_compressed.h include/applet_tables.h
-applets/usage: .config $(srctree)/applets/usage_compressed
+applets/usage: .config $(srctree)/applets/usage_compressed
+
+quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h
+ cmd_gen_usage_compressed = $(srctree)/applets/usage_compressed include/usage_compressed.h applets
include/usage_compressed.h: applets/usage $(srctree)/applets/usage_compressed
$(call cmd,gen_usage_compressed)
-# Two-stage file creation, to avoid having target file still created
-# in case applet_tables fails
+quiet_cmd_gen_applet_tables = GEN include/applet_tables.h
+ cmd_gen_applet_tables = applets/applet_tables include/applet_tables.h
+
include/applet_tables.h: applets/applet_tables
- applets/applet_tables >include/applet_tables.h.tmp
- mv include/applet_tables.h.tmp include/applet_tables.h
+ $(call cmd,gen_applet_tables)