1 # Makefile for buildroot2
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #--------------------------------------------------------------
22 # Just run 'make menuconfig', configure stuff, then run 'make'.
23 # You shouldn't need to mess with anything beyond this point...
24 #--------------------------------------------------------------
26 CONFIG_CONFIG_IN=Config.in
27 CONFIG_DEFCONFIG=.defconfig
29 DATE:=$(shell date +%Y%m%d)
31 noconfig_targets:=menuconfig xconfig config oldconfig randconfig \
32 defconfig allyesconfig allnoconfig release tags \
36 # Use shell variables, if defined
37 ifneq ($(BUILDROOT_LOCAL),)
38 BR2_LOCAL:=$(BUILDROOT_LOCAL)
40 BR2_LOCAL:=$(TOPDIR)/local
43 # Strip quotes and then whitespaces
44 qstrip=$(strip $(subst ",,$(1)))
47 # Variables for use in Make constructs
50 space:=$(empty) $(empty)
52 # $(shell find . -name *_defconfig |sed 's/.*\///')
53 # Pull in the user's configuration file
54 ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
56 # if "make BOARD=xyz" command
60 -include $(BR2_LOCAL)/$(BOARD)/$(BOARD).config
64 # Override BR2_DL_DIR if shell variable defined
65 ifneq ($(BUILDROOT_DL_DIR),)
66 BR2_DL_DIR:=$(BUILDROOT_DL_DIR)
70 # To put more focus on warnings, be less verbose as default
71 # Use 'make V=1' to see the full commands
73 ifeq ("$(origin V)", "command line")
81 ifeq ($(KBUILD_VERBOSE),1)
92 # we want bash as shell
93 SHELL:=$(shell if [ -x "$$BASH" ]; then echo $$BASH; \
94 else if [ -x /bin/bash ]; then echo /bin/bash; \
97 # kconfig uses CONFIG_SHELL
98 CONFIG_SHELL:=$(SHELL)
100 export SHELL CONFIG_SHELL quiet Q KBUILD_VERBOSE VERBOSE
130 HOSTAR:=$(shell which $(HOSTAR) || type -p $(HOSTAR) || echo ar)
131 HOSTAS:=$(shell which $(HOSTAS) || type -p $(HOSTAS) || echo as)
132 HOSTCC:=$(shell which $(HOSTCC) || type -p $(HOSTCC) || echo gcc)
133 HOSTCXX:=$(shell which $(HOSTCXX) || type -p $(HOSTCXX) || echo g++)
134 HOSTFC:=$(shell which $(HOSTLD) || type -p $(HOSTLD) || echo || which g77 || type -p g77 || echo gfortran)
135 HOSTCPP:=$(shell which $(HOSTCPP) || type -p $(HOSTCPP) || echo cpp)
136 HOSTLD:=$(shell which $(HOSTLD) || type -p $(HOSTLD) || echo ld)
137 HOSTLN:=$(shell which $(HOSTLN) || type -p $(HOSTLN) || echo ln)
138 HOSTNM:=$(shell which $(HOSTNM) || type -p $(HOSTNM) || echo nm)
140 ifndef CFLAGS_FOR_BUILD
141 CFLAGS_FOR_BUILD:=-g -O2
143 ifndef CXXFLAGS_FOR_BUILD
144 CXXFLAGS_FOR_BUILD:=-g -O2
146 ifndef FCFLAGS_FOR_BUILD
147 FCFLAGS_FOR_BUILD:=-g -O2
149 export HOSTAR HOSTAS HOSTCC HOSTCXX HOSTFC HOSTLD
152 ifeq ($(BR2_HAVE_DOT_CONFIG),y)
155 # Usage: cflags-y+=$(call cc-option, -march=winchip-c6, -march=i586)
156 # sets -march=winchip-c6 if supported else falls back to -march=i586
157 # without checking the latter.
158 cc-option=$(shell if $(TARGET_CC) $(TARGET_CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
159 > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
161 #############################################################
163 # Hide troublesome environment variables from sub processes
165 #############################################################
166 unexport CROSS_COMPILE
169 #############################################################
171 # Setup the proper filename extensions for the host
173 ##############################################################
174 ifneq ($(findstring linux,$(BR2_GNU_BUILD_SUFFIX)),)
179 ifneq ($(findstring apple,$(BR2_GNU_BUILD_SUFFIX)),)
184 ifneq ($(findstring cygwin,$(BR2_GNU_BUILD_SUFFIX)),)
188 HOST_LOADLIBES="-lcurses -lintl"
189 export HOST_LOADLIBES
191 ifneq ($(findstring mingw,$(BR2_GNU_BUILD_SUFFIX)),)
197 # The preferred type of libs we build for the target
198 ifeq ($(BR2_PREFER_STATIC_LIB),y)
200 #PREFERRED_LIB_FLAGS:=--disable-shared --enable-static
203 #PREFERRED_LIB_FLAGS:=--disable-static --enable-shared
205 PREFERRED_LIB_FLAGS:=--enable-static --enable-shared
207 ##############################################################
209 # The list of stuff to build for the target toolchain
210 # along with the packages to build for the target.
212 ##############################################################
213 ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
214 BASE_TARGETS:=uclibc-configured binutils cross_compiler uclibc-target-utils kernel-headers
220 # Strip off the annoying quoting
221 ARCH:=$(call qstrip,$(BR2_ARCH))
222 ifeq ($(ARCH),xtensa)
223 ARCH:=$(ARCH)_$(call qstrip,$(BR2_xtensa_core_name))
225 WGET:=$(call qstrip,$(BR2_WGET)) $(SPIDER) $(QUIET)
226 SVN_CO:=$(call qstrip,$(BR2_SVN_CO)) $(QUIET)
227 SVN_UP:=$(call qstrip,$(BR2_SVN_UP)) $(QUIET)
228 BZR_CO:=$(call qstrip,$(BR2_BZR_CO)) $(QUIET)
229 BZR_UP:=$(call qstrip,$(BR2_BZR_UP)) $(QUIET)
230 GIT:=$(call qstrip,$(BR2_GIT)) $(QUIET)
231 ZCAT:=$(call qstrip,$(BR2_ZCAT))
232 BZCAT:=$(call qstrip,$(BR2_BZCAT))
233 TAR_OPTIONS=$(call qstrip,$(BR2_TAR_OPTIONS)) -xf
235 # Buildroot supports building out of tree similarly to the Linux kernel.
236 # To use, add O= to the make command line (make O=/tmp/build)
237 BASE_DIR:=$(shell pwd)
239 ifeq ("$(origin O)", "command line")
240 BASE_DIR := $(shell mkdir -p $(O) && cd $(O) && pwd)
241 $(if $(BASE_DIR),, $(error output directory "$(O)" does not exist))
243 # other packages might also support Linux-style out of tree builds
244 # with the O=<dir> syntax (E.G. Busybox does). As make automatically
245 # forwards command line variable definitions those packages get very
246 # confused. Fix this by telling make to not do so
251 TOPDIR_PREFIX:=$(call qstrip,$(BR2_TOPDIR_PREFIX))_
252 TOPDIR_SUFFIX:=_$(call qstrip,$(BR2_TOPDIR_SUFFIX))
253 ifeq ($(TOPDIR_PREFIX),_)
256 ifeq ($(TOPDIR_SUFFIX),_)
260 DL_DIR=$(call qstrip,$(BR2_DL_DIR))
262 DL_DIR:=$(BASE_DIR)/dl
265 BUILD_DIR:=$(BASE_DIR)/$(TOPDIR_PREFIX)build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)
267 GNU_TARGET_SUFFIX:=-$(call qstrip,$(BR2_GNU_TARGET_SUFFIX))
269 STAGING_DIR:=$(call qstrip,$(BR2_STAGING_DIR))
271 # packages compiled for the host goes here
272 HOST_DIR:=$(BUILD_DIR)/host_dir
274 # stamp (dependency) files go here
275 STAMP_DIR:=$(BUILD_DIR)/stamps
277 BINARIES_DIR:=$(BASE_DIR)/binaries/
278 TARGET_DIR:=$(BUILD_DIR)/target_dir
280 # define values for prepatched source trees for toolchains
281 VENDOR_SITE:=$(call qstrip,$(BR2_VENDOR_SITE))
282 VENDOR_SUFFIX:=$(call qstrip,$(BR2_VENDOR_SUFFIX))
283 VENDOR_BINUTILS_RELEASE:=$(call qstrip,$(BR2_VENDOR_BINUTILS_RELEASE))
284 VENDOR_GCC_RELEASE:=$(call qstrip,$(BR2_VENDOR_GCC_RELEASE))
285 VENDOR_UCLIBC_RELEASE:=$(call qstrip,$(BR2_VENDOR_UCLIBC_RELEASE))
286 VENDOR_GDB_RELEASE:=$(call qstrip,$(BR2_VENDOR_GDB_RELEASE))
287 VENDOR_PATCH_DIR:=$(call qstrip,$(BR2_VENDOR_PATCH_DIR))
289 BR2_DEPENDS_DIR=$(BUILD_DIR)/buildroot-config
291 include toolchain/Makefile.in
292 include package/Makefile.in
294 #############################################################
296 # You should probably leave this stuff alone unless you know
297 # what you are doing.
299 #############################################################
303 # In this section, we need .config
306 # We also need the various per-package makefiles, which also add
307 # each selected package to TARGETS if that package was selected
308 # in the .config file.
309 ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
310 # avoid pulling in external toolchain which is broken for toplvl parallel builds
312 include toolchain/dependencies/dependencies.mk
313 include toolchain/binutils/binutils.mk
314 include toolchain/ccache/ccache.mk
315 include toolchain/elf2flt/elf2flt.mk
316 include toolchain/gcc/gcc-uclibc-3.x.mk
317 include toolchain/gcc/gcc-uclibc-4.x.mk
318 include toolchain/gdb/gdb.mk
319 include toolchain/kernel-headers/kernel-headers.mk
320 include toolchain/mklibs/mklibs.mk
321 include toolchain/sstrip/sstrip.mk
322 include toolchain/uClibc/uclibc.mk
324 include toolchain/*/*.mk
327 ifeq ($(BR2_PACKAGE_LINUX),y)
328 TARGETS+=linux26-modules
331 include package/*/*.mk
333 TARGETS+=target-finalize
335 ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
336 TARGETS+=target-purgelocales
339 # target stuff is last so it can override anything else
340 include target/Makefile.in
342 TARGETS+=erase-fakeroots
344 TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
345 TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS) $(BASE_TARGETS))
346 TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
347 TARGETS_ALL:=$(patsubst %,__real_tgt_%,$(TARGETS))
348 # all targets depend on the crosscompiler and it's prerequisites
349 $(TARGETS_ALL): __real_tgt_%: $(BASE_TARGETS) %
351 $(BR2_DEPENDS_DIR): .config
354 cp -dpRf $(CONFIG)/buildroot-config $@
356 dirs: $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
357 $(HOST_DIR) $(BR2_DEPENDS_DIR) $(BINARIES_DIR) $(STAMP_DIR)
359 $(BASE_TARGETS): dirs
361 world: dependencies dirs $(BASE_TARGETS) $(TARGETS_ALL)
364 .PHONY: all world dirs clean dirclean distclean source \
365 $(BASE_TARGETS) $(TARGETS) $(TARGETS_ALL) \
366 $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \
367 $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
368 $(HOST_DIR) $(BR2_DEPENDS_DIR) $(BINARIES_DIR) $(STAMP_DIR)
370 #############################################################
372 # staging and target directories do NOT list these as
373 # dependencies anywhere else
375 #############################################################
376 $(DL_DIR) $(TOOL_BUILD_DIR) $(BUILD_DIR) $(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR):
380 @mkdir -p $(STAGING_DIR)/bin
381 @mkdir -p $(STAGING_DIR)/lib
382 ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
383 @mkdir -p $(STAGING_DIR)/usr/lib
385 ifneq ($(BR2_TOOLCHAIN_EXTERNAL),y)
386 @ln -snf . $(STAGING_DIR)/usr
387 @mkdir -p $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)
388 @ln -snf ../lib $(STAGING_DIR)/usr/lib
389 @ln -snf ../lib $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib
392 @mkdir -p $(STAGING_DIR)/usr/include
395 mkdir -p $(TARGET_DIR)
396 if ! [ -d "$(TARGET_DIR)/bin" ]; then \
397 if [ -d "$(TARGET_SKELETON)" ]; then \
398 cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \
400 if [ -d "$(TARGET_SKELETON_PATCH)" ]; then \
401 toolchain/patch-kernel.sh $(TARGET_DIR) $(TARGET_SKELETON_PATCH)/ \*patch\*; \
403 touch $(STAGING_DIR)/.fakeroot.00000; \
405 -find $(TARGET_DIR) -type d -name CVS -print0 -o -name .svn -print0 | xargs -0 rm -rf
406 -find $(TARGET_DIR) -type f -name .empty -print0 | xargs -0 rm -rf
409 $(TARGET_DIR): $(BUILD_DIR)/.root
412 rm -f $(BUILD_DIR)/.fakeroot*
415 ifeq ($(BR2_HAVE_DEVFILES),y)
416 ( scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) )
418 rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig
419 find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
420 find $(TARGET_DIR)/usr/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
422 ifneq ($(BR2_HAVE_MANPAGES),y)
423 rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/man
425 ifneq ($(BR2_HAVE_INFOPAGES),y)
426 rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/share/info
428 find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD) 2>/dev/null || true
429 $(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null
431 ifneq ($(BR2_ROOTFS_POST_BUILD_SCRIPT),"")
432 $(BR2_ROOTFS_POST_BUILD_SCRIPT) $(TARGET_DIR)
435 ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
436 LOCALE_WHITELIST=$(BUILD_DIR)/locales.nopurge
437 LOCALE_NOPURGE=$(call qstrip,$(BR2_ENABLE_LOCALE_WHITELIST))
440 rm -f $(LOCALE_WHITELIST)
441 for i in $(LOCALE_NOPURGE); do echo $$i >> $(LOCALE_WHITELIST); done
443 for dir in $(wildcard $(addprefix $(TARGET_DIR),/usr/share/locale /usr/share/X11/locale /usr/man /usr/share/man)); \
445 for lang in $$(cd $$dir; ls .|grep -v man); \
447 grep -qx $$lang $(LOCALE_WHITELIST) || rm -rf $$dir/$$lang; \
452 source: $(TARGETS_SOURCE) $(HOST_SOURCE)
455 $(MAKE) SPIDER=--spider source
458 @$(MAKE) -Bs BR2_WGET=$(TOPDIR)/toolchain/wget-show-external-deps.sh \
459 SPIDER=--spider source
461 #############################################################
463 # Cleanup and misc junk
465 #############################################################
466 clean: $(TARGETS_CLEAN)
467 rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE) $(BUILD_DIR)/.root $(STAMP_DIR)
469 dirclean: $(TARGETS_DIRCLEAN)
470 rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE) $(BUILD_DIR)/.root $(STAMP_DIR)
473 ifeq ($(DL_DIR),$(BASE_DIR)/dl)
476 rm -rf $(TOOL_BUILD_DIR) $(BUILD_DIR) $(BUILD_DIR) $(BINARIES_DIR) \
478 $(MAKE) -C $(CONFIG) clean
481 rm -rf $(BUILD_DIR) $(BUILD_DIR) $(BINARIES_DIR)
484 rm -f buildroot.tar.bz2; \
485 tar -cvf buildroot.tar buildroot; \
486 bzip2 -9 buildroot.tar; \
489 else # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
494 # ---------------------------------------------------------------------------
496 HOSTCFLAGS=$(CFLAGS_FOR_BUILD)
500 @mkdir -p $(CONFIG)/buildroot-config
501 $(MAKE) CC="$(HOSTCC)" -C $(CONFIG) conf
502 -@if [ ! -f .config ]; then \
503 cp $(CONFIG_DEFCONFIG) .config; \
507 @mkdir -p $(CONFIG)/buildroot-config
508 $(MAKE) CC="$(HOSTCC)" -C $(CONFIG) mconf
509 -@if [ ! -f .config ]; then \
510 cp $(CONFIG_DEFCONFIG) .config; \
514 @mkdir -p $(CONFIG)/buildroot-config
515 $(MAKE) CC="$(HOSTCC)" -C $(CONFIG) qconf
516 -@if [ ! -f .config ]; then \
517 cp $(CONFIG_DEFCONFIG) .config; \
520 xconfig: $(CONFIG)/qconf
521 @mkdir -p $(CONFIG)/buildroot-config
522 @if ! KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
523 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
524 $(CONFIG)/qconf $(CONFIG_CONFIG_IN); then \
525 test -f .config.cmd || rm -f .config; \
528 menuconfig: $(CONFIG)/mconf
529 @mkdir -p $(CONFIG)/buildroot-config
530 @if ! KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
531 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
532 $(CONFIG)/mconf $(CONFIG_CONFIG_IN); then \
533 test -f .config.cmd || rm -f .config; \
536 config: $(CONFIG)/conf
537 @mkdir -p $(CONFIG)/buildroot-config
538 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
539 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
540 $(CONFIG)/conf $(CONFIG_CONFIG_IN)
542 oldconfig: $(CONFIG)/conf
543 @mkdir -p $(CONFIG)/buildroot-config
544 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
545 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
546 $(CONFIG)/conf -o $(CONFIG_CONFIG_IN)
548 randconfig: $(CONFIG)/conf
549 @mkdir -p $(CONFIG)/buildroot-config
550 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
551 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
552 $(CONFIG)/conf -r $(CONFIG_CONFIG_IN)
554 allyesconfig: $(CONFIG)/conf
555 cat $(CONFIG_DEFCONFIG) > .config
556 @mkdir -p $(CONFIG)/buildroot-config
557 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
558 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
559 $(CONFIG)/conf -y $(CONFIG_CONFIG_IN)
560 #sed -i -e "s/^CONFIG_DEBUG.*/# CONFIG_DEBUG is not set/" .config
562 allnoconfig: $(CONFIG)/conf
563 @mkdir -p $(CONFIG)/buildroot-config
564 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
565 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
566 $(CONFIG)/conf -n $(CONFIG_CONFIG_IN)
568 defconfig: $(CONFIG)/conf
569 @mkdir -p $(CONFIG)/buildroot-config
570 @KCONFIG_AUTOCONFIG=$(CONFIG)/buildroot-config/auto.conf \
571 KCONFIG_AUTOHEADER=$(CONFIG)/buildroot-config/autoconf.h \
572 $(CONFIG)/conf -d $(CONFIG_CONFIG_IN)
574 # check if download URLs are outdated
575 source-check: allyesconfig
576 $(MAKE) _source-check
578 #############################################################
580 # Cleanup and misc junk
582 #############################################################
584 rm -f .config .config.old .config.cmd .tmpconfig.h .lognr.*
585 -$(MAKE) -C $(CONFIG) clean
591 endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y)
594 rm -f $(BUILD_DIR)/tgt-config.cache
596 %_defconfig: $(CONFIG)/conf
597 cp $(shell find ./target/ -name $@) .config
600 configured: dirs host-sed kernel-headers uclibc-config busybox-config linux26-config
602 prepatch: gcc-patched binutils-patched gdb-patched uclibc-patched
604 cross: $(BASE_TARGETS)
608 @echo ' clean - delete temporary files created by build'
609 @echo ' distclean - delete all non-source files (including .config)'
612 @echo ' all - make world'
614 @echo 'Configuration:'
615 @echo ' menuconfig - interactive curses-based configurator'
616 @echo ' xconfig - interactive Qt-based configurator'
617 @echo ' oldconfig - resolve any unresolved symbols in .config'
618 @echo ' configured - make {uclibc/busybox/linux26}-config'
619 @echo ' saveconfig - save current configuration under local/<project>'
620 @echo ' getconfig - restore saved configuration from local/<project>'
622 @echo 'Miscellaneous:'
623 @echo ' source - download all sources needed for offline-build'
624 @echo ' source-check - check all packages for valid download URLs'
625 @echo ' external-deps - list external packages used'
626 @echo ' flush - flush configuration cache'
628 @echo 'See docs/README and docs/buildroot.html for further details'
632 OUT=buildroot-$$(grep -A2 BR2_VERSION $(CONFIG_CONFIG_IN)|grep default|cut -f2 -d\"); \
633 rm -rf ../$$OUT*; cp -al . ../$$OUT; cd ..; \
634 tar cfz $$OUT.tar.gz --exclude .svn --exclude .git --exclude \*~ $$OUT; \
637 .PHONY: dummy subdirs release distclean clean config oldconfig \
638 menuconfig xconfig tags check test depend defconfig help