Bernhard Fischer sent a patch to make "make sizes" work when building in
authorRob Landley <rob@landley.net>
Thu, 1 Sep 2005 02:40:21 +0000 (02:40 -0000)
committerRob Landley <rob@landley.net>
Thu, 1 Sep 2005 02:40:21 +0000 (02:40 -0000)
another output directory.

Makefile

index 03586722617f160d4bd288804fb03e1974c00152..c96c7373bafb7e5ddbf22ad8b531c37ea3da4dc0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -154,8 +154,9 @@ check: busybox
        $(top_srcdir)/testsuite/runtest
 
 sizes:
-       rm -f busybox
-       make STRIPCMD=/bin/true
+       -rm -f busybox
+       $(MAKE) top_srcdir=$(top_srcdir) top_builddir=$(top_builddir) \
+               -f $(top_srcdir)/Makefile STRIPCMD=/bin/true
        nm --size-sort busybox
 # Documentation Targets
 doc: docs/busybox.pod docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html