diff options
author | Rob Landley <rob@landley.net> | 2006-05-27 21:24:16 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-27 21:24:16 +0000 |
commit | d9872aa0d7026a1a92551d432a0928b844da542e (patch) | |
tree | 902e676a207f7d0514e6e9dce3c775d1c8bd6d5b | |
parent | 95a040fac831a5b8c2297328ec0b3ada4024ee7a (diff) | |
download | busybox-w32-d9872aa0d7026a1a92551d432a0928b844da542e.tar.gz busybox-w32-d9872aa0d7026a1a92551d432a0928b844da542e.tar.bz2 busybox-w32-d9872aa0d7026a1a92551d432a0928b844da542e.zip |
Consolidate the .PHONY targets and add "make baseline" for bloatcheck.
-rw-r--r-- | Makefile | 24 |
1 files changed, 14 insertions, 10 deletions
@@ -5,9 +5,13 @@ | |||
5 | # Licensed under GPLv2, see the file LICENSE in this tarball for details. | 5 | # Licensed under GPLv2, see the file LICENSE in this tarball for details. |
6 | # | 6 | # |
7 | 7 | ||
8 | #-------------------------------------------------------------- | 8 | # You shouldn't have to edit anything in this file for configuration |
9 | # You shouldn't need to mess with anything beyond this point... | 9 | # purposes, try "make help" or read http://busybox.net/FAQ.html. |
10 | #-------------------------------------------------------------- | 10 | |
11 | .PHONY: dummy subdirs release distclean clean config oldconfig menuconfig \ | ||
12 | tags check test depend dep buildtree hosttools _all checkhelp \ | ||
13 | sizes bloatcheck baseline objsizes | ||
14 | |||
11 | noconfig_targets := menuconfig config oldconfig randconfig hosttools \ | 15 | noconfig_targets := menuconfig config oldconfig randconfig hosttools \ |
12 | defconfig allyesconfig allnoconfig allbareconfig \ | 16 | defconfig allyesconfig allnoconfig allbareconfig \ |
13 | clean distclean help \ | 17 | clean distclean help \ |
@@ -33,7 +37,6 @@ DIRS:=applets archival archival/libunarchive coreutils console-tools \ | |||
33 | SRC_DIRS:=$(patsubst %,$(top_srcdir)/%,$(DIRS)) | 37 | SRC_DIRS:=$(patsubst %,$(top_srcdir)/%,$(DIRS)) |
34 | 38 | ||
35 | # That's our default target when none is given on the command line | 39 | # That's our default target when none is given on the command line |
36 | .PHONY: _all | ||
37 | _all: | 40 | _all: |
38 | 41 | ||
39 | CONFIG_CONFIG_IN = $(top_srcdir)/Config.in | 42 | CONFIG_CONFIG_IN = $(top_srcdir)/Config.in |
@@ -136,6 +139,7 @@ help: | |||
136 | @echo ' uninstall' | 139 | @echo ' uninstall' |
137 | @echo | 140 | @echo |
138 | @echo 'Development:' | 141 | @echo 'Development:' |
142 | @echo ' baseline - create busybox_old for bloatcheck. | ||
139 | @echo ' bloatcheck - show size difference between old and new versions' | 143 | @echo ' bloatcheck - show size difference between old and new versions' |
140 | @echo ' check - run the test suite for all applets' | 144 | @echo ' check - run the test suite for all applets' |
141 | @echo ' checkhelp - check for missing help-entries in Config.in' | 145 | @echo ' checkhelp - check for missing help-entries in Config.in' |
@@ -364,22 +368,24 @@ ifneq ($(strip $(KBUILD_VERBOSE)),) | |||
364 | CHECK_VERBOSE := -v | 368 | CHECK_VERBOSE := -v |
365 | # ARFLAGS+=v | 369 | # ARFLAGS+=v |
366 | endif | 370 | endif |
371 | |||
367 | check test: busybox | 372 | check test: busybox |
368 | bindir=$(top_builddir) srcdir=$(top_srcdir)/testsuite SED="$(SED)" \ | 373 | bindir=$(top_builddir) srcdir=$(top_srcdir)/testsuite SED="$(SED)" \ |
369 | $(SHELL) $(top_srcdir)/testsuite/runtest $(CHECK_VERBOSE) | 374 | $(SHELL) $(top_srcdir)/testsuite/runtest $(CHECK_VERBOSE) |
370 | 375 | ||
371 | .PHONY: checkhelp | ||
372 | checkhelp: | 376 | checkhelp: |
373 | $(Q)$(top_srcdir)/scripts/checkhelp.awk \ | 377 | $(Q)$(top_srcdir)/scripts/checkhelp.awk \ |
374 | $(wildcard $(patsubst %,%/Config.in,$(SRC_DIRS) ./)) | 378 | $(wildcard $(patsubst %,%/Config.in,$(SRC_DIRS) ./)) |
375 | .PHONY: sizes | 379 | |
376 | sizes: busybox_unstripped | 380 | sizes: busybox_unstripped |
377 | $(NM) --size-sort $(<) | 381 | $(NM) --size-sort $(<) |
378 | .PHONY: bloatcheck | 382 | |
379 | bloatcheck: busybox_old busybox_unstripped | 383 | bloatcheck: busybox_old busybox_unstripped |
380 | @$(top_srcdir)/scripts/bloat-o-meter busybox_old busybox_unstripped | 384 | @$(top_srcdir)/scripts/bloat-o-meter busybox_old busybox_unstripped |
381 | 385 | ||
382 | .PHONY: objsizes | 386 | baseline: busybox_unstripped |
387 | @mv busybox_unstripped busybox_old | ||
388 | |||
383 | objsizes: busybox_unstripped | 389 | objsizes: busybox_unstripped |
384 | $(SHELL) $(top_srcdir)/scripts/objsizes | 390 | $(SHELL) $(top_srcdir)/scripts/objsizes |
385 | 391 | ||
@@ -501,5 +507,3 @@ tags: | |||
501 | 507 | ||
502 | endif # ifeq ($(skip-makefile),) | 508 | endif # ifeq ($(skip-makefile),) |
503 | 509 | ||
504 | .PHONY: dummy subdirs release distclean clean config oldconfig \ | ||
505 | menuconfig tags check test depend dep buildtree hosttools | ||