main.mk revision cddeb6c4f0e5e864bc11cf7e5d61822b9dda1b69
1# Only use ANDROID_BUILD_SHELL to wrap around bash.
2# DO NOT use other shells such as zsh.
3ifdef ANDROID_BUILD_SHELL
4SHELL := $(ANDROID_BUILD_SHELL)
5else
6# Use bash, not whatever shell somebody has installed as /bin/sh
7# This is repeated in config.mk, since envsetup.sh runs that file
8# directly.
9SHELL := /bin/bash
10endif
11
12# this turns off the suffix rules built into make
13.SUFFIXES:
14
15# this turns off the RCS / SCCS implicit rules of GNU Make
16% : RCS/%,v
17% : RCS/%
18% : %,v
19% : s.%
20% : SCCS/s.%
21
22# If a rule fails, delete $@.
23.DELETE_ON_ERROR:
24
25# Figure out where we are.
26#TOP := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
27#TOP := $(patsubst %/,%,$(TOP))
28
29# TOPDIR is the normal variable you should use, because
30# if we are executing relative to the current directory
31# it can be "", whereas TOP must be "." which causes
32# pattern matching problems when make strips off the
33# trailing "./" from paths in various places.
34#ifeq ($(TOP),.)
35#TOPDIR :=
36#else
37#TOPDIR := $(TOP)/
38#endif
39
40# Check for broken versions of make.
41ifneq (1,$(strip $(shell expr $(MAKE_VERSION) \>= 3.81)))
42$(warning ********************************************************************************)
43$(warning *  You are using version $(MAKE_VERSION) of make.)
44$(warning *  Android can only be built by versions 3.81 and higher.)
45$(warning *  see https://source.android.com/source/download.html)
46$(warning ********************************************************************************)
47$(error stopping)
48endif
49
50# Absolute path of the present working direcotry.
51# This overrides the shell variable $PWD, which does not necessarily points to
52# the top of the source tree, for example when "make -C" is used in m/mm/mmm.
53PWD := $(shell pwd)
54
55TOP := .
56TOPDIR :=
57
58BUILD_SYSTEM := $(TOPDIR)build/core
59
60# This is the default target.  It must be the first declared target.
61.PHONY: droid
62DEFAULT_GOAL := droid
63$(DEFAULT_GOAL): droid_targets
64
65.PHONY: droid_targets
66droid_targets:
67
68# Used to force goals to build.  Only use for conditionally defined goals.
69.PHONY: FORCE
70FORCE:
71
72# These goals don't need to collect and include Android.mks/CleanSpec.mks
73# in the source tree.
74dont_bother_goals := clean clobber dataclean installclean \
75    help out \
76    snod systemimage-nodeps \
77    stnod systemtarball-nodeps \
78    userdataimage-nodeps userdatatarball-nodeps \
79    cacheimage-nodeps \
80    vendorimage-nodeps \
81    ramdisk-nodeps \
82    bootimage-nodeps \
83    recoveryimage-nodeps \
84    product-graph dump-products
85
86ifneq ($(filter $(dont_bother_goals), $(MAKECMDGOALS)),)
87dont_bother := true
88endif
89
90ORIGINAL_MAKECMDGOALS := $(MAKECMDGOALS)
91
92# Targets that provide quick help on the build system.
93include $(BUILD_SYSTEM)/help.mk
94
95# Set up various standard variables based on configuration
96# and host information.
97include $(BUILD_SYSTEM)/config.mk
98
99ifndef KATI
100ifdef USE_NINJA
101$(warning USE_NINJA is ignored. Ninja is always used.)
102endif
103
104# Mark this is a ninja build.
105$(shell mkdir -p $(OUT_DIR) && touch $(OUT_DIR)/ninja_build)
106include build/core/ninja.mk
107else # KATI
108
109# With these files findleaves.py won't be unnecessarily slower even if
110# there is a user creates a copy of $(OUT_DIR).
111$(shell echo '# This file prevents findleaves.py from traversing this directory further' > $(OUT_DIR)/Android.mk)
112$(shell echo '# This file prevents findleaves.py from traversing this directory further' > $(OUT_DIR)/CleanSpec.mk)
113
114# Write the build number to a file so it can be read back in
115# without changing the command line every time.  Avoids rebuilds
116# when using ninja.
117$(shell mkdir -p $(OUT_DIR) && \
118    echo -n $(BUILD_NUMBER) > $(OUT_DIR)/build_number.txt && \
119    echo -n $(BUILD_DATETIME) > $(OUT_DIR)/build_date.txt)
120BUILD_NUMBER_FROM_FILE := $$(cat $(OUT_DIR)/build_number.txt)
121BUILD_DATETIME_FROM_FILE := $$(cat $(OUT_DIR)/build_date.txt)
122ifeq ($(HOST_OS),darwin)
123DATE_FROM_FILE := date -r $(BUILD_DATETIME_FROM_FILE)
124else
125DATE_FROM_FILE := date -d @$(BUILD_DATETIME_FROM_FILE)
126endif
127
128# CTS-specific config.
129-include cts/build/config.mk
130
131# This allows us to force a clean build - included after the config.mk
132# environment setup is done, but before we generate any dependencies.  This
133# file does the rm -rf inline so the deps which are all done below will
134# be generated correctly
135include $(BUILD_SYSTEM)/cleanbuild.mk
136
137# Include the google-specific config
138-include vendor/google/build/config.mk
139
140VERSION_CHECK_SEQUENCE_NUMBER := 6
141JAVA_NOT_REQUIRED_CHECKED :=
142-include $(OUT_DIR)/versions_checked.mk
143ifneq ($(VERSION_CHECK_SEQUENCE_NUMBER)$(JAVA_NOT_REQUIRED),$(VERSIONS_CHECKED)$(JAVA_NOT_REQUIRED_CHECKED))
144
145$(info Checking build tools versions...)
146
147# check for a case sensitive file system
148ifneq (a,$(shell mkdir -p $(OUT_DIR) ; \
149                echo a > $(OUT_DIR)/casecheck.txt; \
150                    echo B > $(OUT_DIR)/CaseCheck.txt; \
151                cat $(OUT_DIR)/casecheck.txt))
152$(warning ************************************************************)
153$(warning You are building on a case-insensitive filesystem.)
154$(warning Please move your source tree to a case-sensitive filesystem.)
155$(warning ************************************************************)
156$(error Case-insensitive filesystems not supported)
157endif
158
159# Make sure that there are no spaces in the absolute path; the
160# build system can't deal with them.
161ifneq ($(words $(shell pwd)),1)
162$(warning ************************************************************)
163$(warning You are building in a directory whose absolute path contains)
164$(warning a space character:)
165$(warning $(space))
166$(warning "$(shell pwd)")
167$(warning $(space))
168$(warning Please move your source tree to a path that does not contain)
169$(warning any spaces.)
170$(warning ************************************************************)
171$(error Directory names containing spaces not supported)
172endif
173
174ifneq ($(JAVA_NOT_REQUIRED),true)
175java_version_str := $(shell unset _JAVA_OPTIONS && java -version 2>&1)
176javac_version_str := $(shell unset _JAVA_OPTIONS && javac -version 2>&1)
177
178# Check for the correct version of java, should be 1.8 by
179# default and only 1.7 if LEGACY_USE_JAVA7 is set.
180ifeq ($(LEGACY_USE_JAVA7),) # if LEGACY_USE_JAVA7 == ''
181required_version := "1.8.x"
182required_javac_version := "1.8"
183java_version := $(shell echo '$(java_version_str)' | grep '[ "]1\.8[\. "$$]')
184javac_version := $(shell echo '$(javac_version_str)' | grep '[ "]1\.8[\. "$$]')
185else
186required_version := "1.7.x"
187required_javac_version := "1.7"
188java_version := $(shell echo '$(java_version_str)' | grep '^java .*[ "]1\.7[\. "$$]')
189javac_version := $(shell echo '$(javac_version_str)' | grep '[ "]1\.7[\. "$$]')
190endif # if LEGACY_USE_JAVA7 == ''
191
192ifeq ($(strip $(java_version)),)
193$(info ************************************************************)
194$(info You are attempting to build with the incorrect version)
195$(info of java.)
196$(info $(space))
197$(info Your version is: $(java_version_str).)
198$(info The required version is: $(required_version))
199$(info $(space))
200$(info Please follow the machine setup instructions at)
201$(info $(space)$(space)$(space)$(space)https://source.android.com/source/initializing.html)
202$(info ************************************************************)
203$(error stop)
204endif
205
206# Check for the current JDK.
207#
208# For Java 1.7/1.8, we require OpenJDK on linux and Oracle JDK on Mac OS.
209requires_openjdk := false
210ifeq ($(BUILD_OS),linux)
211requires_openjdk := true
212endif
213
214
215# Check for the current jdk
216ifeq ($(requires_openjdk), true)
217# The user asked for java7 openjdk, so check that the host
218# java version is really openjdk
219ifeq ($(shell echo '$(java_version_str)' | grep -i openjdk),)
220$(info ************************************************************)
221$(info You asked for an OpenJDK 7 build but your version is)
222$(info $(java_version_str).)
223$(info ************************************************************)
224$(error stop)
225endif # java version is not OpenJdk
226else # if requires_openjdk
227ifneq ($(shell echo '$(java_version_str)' | grep -i openjdk),)
228$(info ************************************************************)
229$(info You are attempting to build with an unsupported JDK.)
230$(info $(space))
231$(info You use OpenJDK but only Sun/Oracle JDK is supported.)
232$(info Please follow the machine setup instructions at)
233$(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
234$(info ************************************************************)
235$(error stop)
236endif # java version is not Sun Oracle JDK
237endif # if requires_openjdk
238
239# Check for the correct version of javac
240ifeq ($(strip $(javac_version)),)
241$(info ************************************************************)
242$(info You are attempting to build with the incorrect version)
243$(info of javac.)
244$(info $(space))
245$(info Your version is: $(javac_version_str).)
246$(info The required version is: $(required_javac_version))
247$(info $(space))
248$(info Please follow the machine setup instructions at)
249$(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
250$(info ************************************************************)
251$(error stop)
252endif
253
254endif # if JAVA_NOT_REQUIRED
255
256ifndef BUILD_EMULATOR
257  # Emulator binaries are now provided under prebuilts/android-emulator/
258  BUILD_EMULATOR := false
259endif
260
261$(shell echo 'VERSIONS_CHECKED := $(VERSION_CHECK_SEQUENCE_NUMBER)' \
262        > $(OUT_DIR)/versions_checked.mk)
263$(shell echo 'BUILD_EMULATOR ?= $(BUILD_EMULATOR)' \
264        >> $(OUT_DIR)/versions_checked.mk)
265$(shell echo 'JAVA_NOT_REQUIRED_CHECKED := $(JAVA_NOT_REQUIRED)' \
266        >> $(OUT_DIR)/versions_checked.mk)
267endif
268
269# These are the modifier targets that don't do anything themselves, but
270# change the behavior of the build.
271# (must be defined before including definitions.make)
272INTERNAL_MODIFIER_TARGETS := showcommands all
273
274# EMMA_INSTRUMENT_STATIC merges the static emma library to each emma-enabled module.
275ifeq (true,$(EMMA_INSTRUMENT_STATIC))
276EMMA_INSTRUMENT := true
277endif
278
279# Bring in standard build system definitions.
280include $(BUILD_SYSTEM)/definitions.mk
281
282# Bring in dex_preopt.mk
283include $(BUILD_SYSTEM)/dex_preopt.mk
284
285ifneq ($(filter user userdebug eng,$(MAKECMDGOALS)),)
286$(info ***************************************************************)
287$(info ***************************************************************)
288$(info Do not pass '$(filter user userdebug eng,$(MAKECMDGOALS))' on \
289       the make command line.)
290$(info Set TARGET_BUILD_VARIANT in buildspec.mk, or use lunch or)
291$(info choosecombo.)
292$(info ***************************************************************)
293$(info ***************************************************************)
294$(error stopping)
295endif
296
297ifneq ($(filter-out $(INTERNAL_VALID_VARIANTS),$(TARGET_BUILD_VARIANT)),)
298$(info ***************************************************************)
299$(info ***************************************************************)
300$(info Invalid variant: $(TARGET_BUILD_VARIANT))
301$(info Valid values are: $(INTERNAL_VALID_VARIANTS))
302$(info ***************************************************************)
303$(info ***************************************************************)
304$(error stopping)
305endif
306
307# -----------------------------------------------------------------
308# Variable to check java support level inside PDK build.
309# Not necessary if the components is not in PDK.
310# not defined : not supported
311# "sdk" : sdk API only
312# "platform" : platform API supproted
313TARGET_BUILD_JAVA_SUPPORT_LEVEL := platform
314
315# -----------------------------------------------------------------
316# The pdk (Platform Development Kit) build
317include build/core/pdk_config.mk
318
319#
320# -----------------------------------------------------------------
321# Jack version configuration
322-include $(TOPDIR)prebuilts/sdk/tools/jack_versions.mk
323-include $(TOPDIR)prebuilts/sdk/tools/jack_for_module.mk
324
325#
326# -----------------------------------------------------------------
327# Install and start Jack server
328-include $(TOPDIR)prebuilts/sdk/tools/jack_server_setup.mk
329
330#
331# -----------------------------------------------------------------
332# Jacoco package name for Jack
333-include $(TOPDIR)external/jacoco/config.mk
334
335# -----------------------------------------------------------------
336###
337### In this section we set up the things that are different
338### between the build variants
339###
340
341is_sdk_build :=
342
343ifneq ($(filter sdk win_sdk sdk_addon,$(MAKECMDGOALS)),)
344is_sdk_build := true
345endif
346
347# Add build properties for ART. These define system properties used by installd
348# to pass flags to dex2oat.
349ADDITIONAL_BUILD_PROPERTIES += persist.sys.dalvik.vm.lib.2=libart.so
350ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.isa.$(TARGET_ARCH).variant=$(DEX2OAT_TARGET_CPU_VARIANT)
351ifneq ($(DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES),)
352  ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.isa.$(TARGET_ARCH).features=$(DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES)
353endif
354
355ifdef TARGET_2ND_ARCH
356  ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.isa.$(TARGET_2ND_ARCH).variant=$($(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_CPU_VARIANT)
357  ifneq ($($(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES),)
358    ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.isa.$(TARGET_2ND_ARCH).features=$($(TARGET_2ND_ARCH_VAR_PREFIX)DEX2OAT_TARGET_INSTRUCTION_SET_FEATURES)
359  endif
360endif
361
362## user/userdebug ##
363
364user_variant := $(filter user userdebug,$(TARGET_BUILD_VARIANT))
365enable_target_debugging := true
366tags_to_install :=
367ifneq (,$(user_variant))
368  # Target is secure in user builds.
369  ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=1
370
371  ifeq ($(user_variant),user)
372    ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
373  endif
374
375  ifeq ($(user_variant),userdebug)
376    # Pick up some extra useful tools
377    tags_to_install += debug
378  else
379    # Disable debugging in plain user builds.
380    enable_target_debugging :=
381  endif
382
383  # Turn on Dalvik preoptimization for user builds, but only if not
384  # explicitly disabled and the build is running on Linux (since host
385  # Dalvik isn't built for non-Linux hosts).
386  ifeq (,$(WITH_DEXPREOPT))
387    ifeq ($(user_variant),user)
388      ifeq ($(HOST_OS),linux)
389        # TODO: turn on WITH_DEXPREOPT for libart user builds.
390        # WITH_DEXPREOPT := true
391      endif
392    endif
393  endif
394
395  # Disallow mock locations by default for user builds
396  ADDITIONAL_DEFAULT_PROPERTIES += ro.allow.mock.location=0
397
398else # !user_variant
399  # Turn on checkjni for non-user builds.
400  ADDITIONAL_BUILD_PROPERTIES += ro.kernel.android.checkjni=1
401  # Set device insecure for non-user builds.
402  ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
403  # Allow mock locations by default for non user builds
404  ADDITIONAL_DEFAULT_PROPERTIES += ro.allow.mock.location=1
405endif # !user_variant
406
407ifeq (true,$(strip $(enable_target_debugging)))
408  # Target is more debuggable and adbd is on by default
409  ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1
410  # Enable Dalvik lock contention logging.
411  ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.lockprof.threshold=500
412  # Include the debugging/testing OTA keys in this build.
413  INCLUDE_TEST_OTA_KEYS := true
414else # !enable_target_debugging
415  # Target is less debuggable and adbd is off by default
416  ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=0
417endif # !enable_target_debugging
418
419## eng ##
420
421ifeq ($(TARGET_BUILD_VARIANT),eng)
422tags_to_install := debug eng
423ifneq ($(filter ro.setupwizard.mode=ENABLED, $(call collapse-pairs, $(ADDITIONAL_BUILD_PROPERTIES))),)
424  # Don't require the setup wizard on eng builds
425  ADDITIONAL_BUILD_PROPERTIES := $(filter-out ro.setupwizard.mode=%,\
426          $(call collapse-pairs, $(ADDITIONAL_BUILD_PROPERTIES))) \
427          ro.setupwizard.mode=OPTIONAL
428endif
429ifndef is_sdk_build
430  # Don't verify or compile the image on eng builds to speed startup.
431  ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.image-dex2oat-filter=verify-at-runtime
432  # Don't verify or compile apps on eng builds to speed startup.
433  ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.dex2oat-filter=verify-at-runtime
434endif
435  ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.usejit=true
436endif
437
438## sdk ##
439
440ifdef is_sdk_build
441
442# Detect if we want to build a repository for the SDK
443sdk_repo_goal := $(strip $(filter sdk_repo,$(MAKECMDGOALS)))
444MAKECMDGOALS := $(strip $(filter-out sdk_repo,$(MAKECMDGOALS)))
445
446ifneq ($(words $(sort $(filter-out $(INTERNAL_MODIFIER_TARGETS) checkbuild emulator_tests target-files-package,$(MAKECMDGOALS)))),1)
447$(error The 'sdk' target may not be specified with any other targets)
448endif
449
450# TODO: this should be eng I think.  Since the sdk is built from the eng
451# variant.
452tags_to_install := debug eng
453ADDITIONAL_BUILD_PROPERTIES += xmpp.auto-presence=true
454ADDITIONAL_BUILD_PROPERTIES += ro.config.nocheckin=yes
455else # !sdk
456endif
457
458BUILD_WITHOUT_PV := true
459
460ADDITIONAL_BUILD_PROPERTIES += net.bt.name=Android
461
462# enable vm tracing in files for now to help track
463# the cause of ANRs in the content process
464ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.stack-trace-file=/data/anr/traces.txt
465
466# ------------------------------------------------------------
467# Define a function that, given a list of module tags, returns
468# non-empty if that module should be installed in /system.
469
470# For most goals, anything not tagged with the "tests" tag should
471# be installed in /system.
472define should-install-to-system
473$(if $(filter tests,$(1)),,true)
474endef
475
476ifdef is_sdk_build
477# For the sdk goal, anything with the "samples" tag should be
478# installed in /data even if that module also has "eng"/"debug"/"user".
479define should-install-to-system
480$(if $(filter samples tests,$(1)),,true)
481endef
482endif
483
484
485# If they only used the modifier goals (showcommands, etc), we'll actually
486# build the default target.
487ifeq ($(filter-out $(INTERNAL_MODIFIER_TARGETS),$(MAKECMDGOALS)),)
488.PHONY: $(INTERNAL_MODIFIER_TARGETS)
489$(INTERNAL_MODIFIER_TARGETS): $(DEFAULT_GOAL)
490endif
491
492#
493# Typical build; include any Android.mk files we can find.
494#
495subdirs := $(TOP)
496
497FULL_BUILD := true
498
499# Before we go and include all of the module makefiles, stash away
500# the PRODUCT_* values so that later we can verify they are not modified.
501stash_product_vars:=true
502ifeq ($(stash_product_vars),true)
503  $(call stash-product-vars, __STASHED)
504endif
505
506ifneq ($(ONE_SHOT_MAKEFILE),)
507# We've probably been invoked by the "mm" shell function
508# with a subdirectory's makefile.
509include $(ONE_SHOT_MAKEFILE)
510# Change CUSTOM_MODULES to include only modules that were
511# defined by this makefile; this will install all of those
512# modules as a side-effect.  Do this after including ONE_SHOT_MAKEFILE
513# so that the modules will be installed in the same place they
514# would have been with a normal make.
515CUSTOM_MODULES := $(sort $(call get-tagged-modules,$(ALL_MODULE_TAGS)))
516FULL_BUILD :=
517# Stub out the notice targets, which probably aren't defined
518# when using ONE_SHOT_MAKEFILE.
519NOTICE-HOST-%: ;
520NOTICE-TARGET-%: ;
521
522# A helper goal printing out install paths
523.PHONY: GET-INSTALL-PATH
524GET-INSTALL-PATH:
525	@echo "Install paths for modules in $(ONE_SHOT_MAKEFILE):"
526	@$(foreach m, $(ALL_MODULES), $(if $(ALL_MODULES.$(m).INSTALLED), \
527		echo 'INSTALL-PATH: $(m) $(ALL_MODULES.$(m).INSTALLED)';))
528
529else # ONE_SHOT_MAKEFILE
530
531ifneq ($(dont_bother),true)
532#
533# Include all of the makefiles in the system
534#
535
536# Can't use first-makefiles-under here because
537# --mindepth=2 makes the prunes not work.
538subdir_makefiles := \
539	$(shell build/tools/findleaves.py $(FIND_LEAVES_EXCLUDES) $(subdirs) Android.mk)
540
541ifeq ($(USE_SOONG),true)
542subdir_makefiles := $(SOONG_ANDROID_MK) $(call filter-soong-makefiles,$(subdir_makefiles))
543endif
544
545$(foreach mk, $(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
546
547endif # dont_bother
548
549endif # ONE_SHOT_MAKEFILE
550
551# Now with all Android.mks loaded we can do post cleaning steps.
552include $(BUILD_SYSTEM)/post_clean.mk
553
554ifeq ($(stash_product_vars),true)
555  $(call assert-product-vars, __STASHED)
556endif
557
558# -------------------------------------------------------------------
559# All module makefiles have been included at this point.
560# -------------------------------------------------------------------
561
562
563# -------------------------------------------------------------------
564# Fix up CUSTOM_MODULES to refer to installed files rather than
565# just bare module names.  Leave unknown modules alone in case
566# they're actually full paths to a particular file.
567known_custom_modules := $(filter $(ALL_MODULES),$(CUSTOM_MODULES))
568unknown_custom_modules := $(filter-out $(ALL_MODULES),$(CUSTOM_MODULES))
569CUSTOM_MODULES := \
570	$(call module-installed-files,$(known_custom_modules)) \
571	$(unknown_custom_modules)
572
573# -------------------------------------------------------------------
574# Define dependencies for modules that require other modules.
575# This can only happen now, after we've read in all module makefiles.
576#
577# TODO: deal with the fact that a bare module name isn't
578# unambiguous enough.  Maybe declare short targets like
579# APPS:Quake or HOST:SHARED_LIBRARIES:libutils.
580# BUG: the system image won't know to depend on modules that are
581# brought in as requirements of other modules.
582#
583# Resolve the required module name to 32-bit or 64-bit variant.
584# Get a list of corresponding 32-bit module names, if one exists.
585define get-32-bit-modules
586$(strip $(foreach m,$(1),\
587  $(if $(ALL_MODULES.$(m)$(TARGET_2ND_ARCH_MODULE_SUFFIX).CLASS),\
588    $(m)$(TARGET_2ND_ARCH_MODULE_SUFFIX))))
589endef
590# Get a list of corresponding 32-bit module names, if one exists;
591# otherwise return the original module name
592define get-32-bit-modules-if-we-can
593$(strip $(foreach m,$(1),\
594  $(if $(ALL_MODULES.$(m)$(TARGET_2ND_ARCH_MODULE_SUFFIX).CLASS),\
595    $(m)$(TARGET_2ND_ARCH_MODULE_SUFFIX),
596    $(m))))
597endef
598
599# If a module is for a cross host os, the required modules must be for
600# that OS too.
601# If a module is built for 32-bit, the required modules must be 32-bit too;
602# Otherwise if the module is an exectuable or shared library,
603#   the required modules must be 64-bit;
604#   otherwise we require both 64-bit and 32-bit variant, if one exists.
605$(foreach m,$(ALL_MODULES),\
606  $(eval r := $(ALL_MODULES.$(m).REQUIRED))\
607  $(if $(r),\
608    $(if $(ALL_MODULES.$(m).FOR_HOST_CROSS),\
609      $(eval r := $(addprefix host_cross_,$(r))))\
610    $(if $(ALL_MODULES.$(m).FOR_2ND_ARCH),\
611      $(eval r_r := $(call get-32-bit-modules-if-we-can,$(r))),\
612      $(if $(filter EXECUTABLES SHARED_LIBRARIES,$(ALL_MODULES.$(m).CLASS)),\
613        $(eval r_r := $(r)),\
614        $(eval r_r := $(r) $(call get-32-bit-modules,$(r)))\
615       )\
616     )\
617     $(eval ALL_MODULES.$(m).REQUIRED := $(strip $(r_r)))\
618  )\
619)
620r_r :=
621
622define add-required-deps
623$(1): | $(2)
624endef
625
626$(foreach m,$(ALL_MODULES), \
627  $(eval r := $(ALL_MODULES.$(m).REQUIRED)) \
628  $(if $(r), \
629    $(eval r := $(call module-installed-files,$(r))) \
630    $(eval t_m := $(filter $(TARGET_OUT_ROOT)/%, $(ALL_MODULES.$(m).INSTALLED))) \
631    $(eval h_m := $(filter $(HOST_OUT_ROOT)/%, $(ALL_MODULES.$(m).INSTALLED))) \
632    $(eval hc_m := $(filter $(HOST_CROSS_OUT_ROOT)/%, $(ALL_MODULES.$(m).INSTALLED))) \
633    $(eval t_r := $(filter $(TARGET_OUT_ROOT)/%, $(r))) \
634    $(eval h_r := $(filter $(HOST_OUT_ROOT)/%, $(r))) \
635    $(eval hc_r := $(filter $(HOST_CROSS_OUT_ROOT)/%, $(r))) \
636    $(eval t_m := $(filter-out $(t_r), $(t_m))) \
637    $(eval h_m := $(filter-out $(h_r), $(h_m))) \
638    $(eval hc_m := $(filter-out $(hc_r), $(hc_m))) \
639    $(if $(t_m), $(eval $(call add-required-deps, $(t_m),$(t_r)))) \
640    $(if $(h_m), $(eval $(call add-required-deps, $(h_m),$(h_r)))) \
641    $(if $(hc_m), $(eval $(call add-required-deps, $(hc_m),$(hc_r)))) \
642   ) \
643 )
644
645t_m :=
646h_m :=
647hc_m :=
648t_r :=
649h_r :=
650hc_r :=
651
652# Establish the dependecies on the shared libraries.
653# It also adds the shared library module names to ALL_MODULES.$(m).REQUIRED,
654# so they can be expanded to product_MODULES later.
655# $(1): TARGET_ or HOST_ or HOST_CROSS_.
656# $(2): non-empty for 2nd arch.
657# $(3): non-empty for host cross compile.
658define resolve-shared-libs-depes
659$(foreach m,$($(if $(2),$($(1)2ND_ARCH_VAR_PREFIX))$(1)DEPENDENCIES_ON_SHARED_LIBRARIES),\
660  $(eval p := $(subst :,$(space),$(m)))\
661  $(eval mod := $(firstword $(p)))\
662  $(eval deps := $(subst $(comma),$(space),$(lastword $(p))))\
663  $(if $(2),$(eval deps := $(addsuffix $($(1)2ND_ARCH_MODULE_SUFFIX),$(deps))))\
664  $(if $(3),$(eval deps := $(addprefix host_cross_,$(deps))))\
665  $(eval r := $(filter $($(1)OUT)/%,$(call module-installed-files,\
666    $(deps))))\
667  $(eval $(call add-required-deps,$(word 2,$(p)),$(r)))\
668  $(eval ALL_MODULES.$(mod).REQUIRED += $(deps)))
669endef
670
671$(call resolve-shared-libs-depes,TARGET_)
672ifdef TARGET_2ND_ARCH
673$(call resolve-shared-libs-depes,TARGET_,true)
674endif
675$(call resolve-shared-libs-depes,HOST_)
676ifdef HOST_2ND_ARCH
677$(call resolve-shared-libs-depes,HOST_,true)
678endif
679ifdef HOST_CROSS_OS
680$(call resolve-shared-libs-depes,HOST_CROSS_,,true)
681endif
682
683m :=
684r :=
685p :=
686deps :=
687add-required-deps :=
688
689# -------------------------------------------------------------------
690# Figure out our module sets.
691#
692# Of the modules defined by the component makefiles,
693# determine what we actually want to build.
694
695###########################################################
696## Expand a module name list with REQUIRED modules
697###########################################################
698# $(1): The variable name that holds the initial module name list.
699#       the variable will be modified to hold the expanded results.
700# $(2): The initial module name list.
701# Returns empty string (maybe with some whitespaces).
702define expand-required-modules
703$(eval _erm_new_modules := $(sort $(filter-out $($(1)),\
704  $(foreach m,$(2),$(ALL_MODULES.$(m).REQUIRED)))))\
705$(if $(_erm_new_modules),$(eval $(1) += $(_erm_new_modules))\
706  $(call expand-required-modules,$(1),$(_erm_new_modules)))
707endef
708
709ifdef FULL_BUILD
710  # The base list of modules to build for this product is specified
711  # by the appropriate product definition file, which was included
712  # by product_config.mk.
713  product_MODULES := $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES)
714  # Filter out the overridden packages before doing expansion
715  product_MODULES := $(filter-out $(foreach p, $(product_MODULES), \
716      $(PACKAGES.$(p).OVERRIDES)), $(product_MODULES))
717
718  # Resolve the :32 :64 module name
719  modules_32 := $(patsubst %:32,%,$(filter %:32, $(product_MODULES)))
720  modules_64 := $(patsubst %:64,%,$(filter %:64, $(product_MODULES)))
721  modules_rest := $(filter-out %:32 %:64,$(product_MODULES))
722  # Note for 32-bit product, $(modules_32) and $(modules_64) will be
723  # added as their original module names.
724  product_MODULES := $(call get-32-bit-modules-if-we-can, $(modules_32))
725  product_MODULES += $(modules_64)
726  # For the rest we add both
727  product_MODULES += $(call get-32-bit-modules, $(modules_rest))
728  product_MODULES += $(modules_rest)
729
730  $(call expand-required-modules,product_MODULES,$(product_MODULES))
731
732  product_FILES := $(call module-installed-files, $(product_MODULES))
733  ifeq (0,1)
734    $(info product_FILES for $(TARGET_DEVICE) ($(INTERNAL_PRODUCT)):)
735    $(foreach p,$(product_FILES),$(info :   $(p)))
736    $(error done)
737  endif
738else
739  # We're not doing a full build, and are probably only including
740  # a subset of the module makefiles.  Don't try to build any modules
741  # requested by the product, because we probably won't have rules
742  # to build them.
743  product_FILES :=
744endif
745
746eng_MODULES := $(sort \
747        $(call get-tagged-modules,eng) \
748        $(call module-installed-files, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_ENG)) \
749    )
750debug_MODULES := $(sort \
751        $(call get-tagged-modules,debug) \
752        $(call module-installed-files, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_DEBUG)) \
753    )
754tests_MODULES := $(sort \
755        $(call get-tagged-modules,tests) \
756        $(call module-installed-files, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_TESTS)) \
757    )
758
759# TODO: Remove the 3 places in the tree that use ALL_DEFAULT_INSTALLED_MODULES
760# and get rid of it from this list.
761modules_to_install := $(sort \
762    $(ALL_DEFAULT_INSTALLED_MODULES) \
763    $(product_FILES) \
764    $(foreach tag,$(tags_to_install),$($(tag)_MODULES)) \
765    $(CUSTOM_MODULES) \
766  )
767
768# Some packages may override others using LOCAL_OVERRIDES_PACKAGES.
769# Filter out (do not install) any overridden packages.
770overridden_packages := $(call get-package-overrides,$(modules_to_install))
771ifdef overridden_packages
772#  old_modules_to_install := $(modules_to_install)
773  modules_to_install := \
774      $(filter-out $(foreach p,$(overridden_packages),$(p) %/$(p).apk), \
775          $(modules_to_install))
776endif
777#$(error filtered out
778#           $(filter-out $(modules_to_install),$(old_modules_to_install)))
779
780# Don't include any GNU General Public License shared objects or static
781# libraries in SDK images.  GPL executables (not static/dynamic libraries)
782# are okay if they don't link against any closed source libraries (directly
783# or indirectly)
784
785# It's ok (and necessary) to build the host tools, but nothing that's
786# going to be installed on the target (including static libraries).
787
788ifdef is_sdk_build
789  target_gnu_MODULES := \
790              $(filter \
791                      $(TARGET_OUT_INTERMEDIATES)/% \
792                      $(TARGET_OUT)/% \
793                      $(TARGET_OUT_DATA)/%, \
794                              $(sort $(call get-tagged-modules,gnu)))
795  target_gnu_MODULES := $(filter-out $(TARGET_OUT_EXECUTABLES)/%,$(target_gnu_MODULES))
796  $(info Removing from sdk:)$(foreach d,$(target_gnu_MODULES),$(info : $(d)))
797  modules_to_install := \
798              $(filter-out $(target_gnu_MODULES),$(modules_to_install))
799
800  # Ensure every module listed in PRODUCT_PACKAGES* gets something installed
801  # TODO: Should we do this for all builds and not just the sdk?
802  dangling_modules :=
803  $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES), \
804    $(if $(strip $(ALL_MODULES.$(m).INSTALLED) $(ALL_MODULES.$(m)$(TARGET_2ND_ARCH_MODULE_SUFFIX).INSTALLED)),,\
805      $(eval dangling_modules += $(m))))
806  ifneq ($(dangling_modules),)
807    $(warning: Modules '$(dangling_modules)' in PRODUCT_PACKAGES have nothing to install!)
808  endif
809  $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_DEBUG), \
810    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
811      $(warning $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES_DEBUG has nothing to install!)))
812  $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_ENG), \
813    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
814      $(warning $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES_ENG has nothing to install!)))
815  $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_TESTS), \
816    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
817      $(warning $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES_TESTS has nothing to install!)))
818endif
819
820# build/core/Makefile contains extra stuff that we don't want to pollute this
821# top-level makefile with.  It expects that ALL_DEFAULT_INSTALLED_MODULES
822# contains everything that's built during the current make, but it also further
823# extends ALL_DEFAULT_INSTALLED_MODULES.
824ALL_DEFAULT_INSTALLED_MODULES := $(modules_to_install)
825include $(BUILD_SYSTEM)/Makefile
826modules_to_install := $(sort $(ALL_DEFAULT_INSTALLED_MODULES))
827ALL_DEFAULT_INSTALLED_MODULES :=
828
829
830# These are additional goals that we build, in order to make sure that there
831# is as little code as possible in the tree that doesn't build.
832modules_to_check := $(foreach m,$(ALL_MODULES),$(ALL_MODULES.$(m).CHECKED))
833
834# If you would like to build all goals, and not skip any intermediate
835# steps, you can pass the "all" modifier goal on the commandline.
836ifneq ($(filter all,$(MAKECMDGOALS)),)
837modules_to_check += $(foreach m,$(ALL_MODULES),$(ALL_MODULES.$(m).BUILT))
838endif
839
840# for easier debugging
841modules_to_check := $(sort $(modules_to_check))
842#$(error modules_to_check $(modules_to_check))
843
844# -------------------------------------------------------------------
845# This is used to to get the ordering right, you can also use these,
846# but they're considered undocumented, so don't complain if their
847# behavior changes.
848# An internal target that depends on all copied headers
849# (see copy_headers.make).  Other targets that need the
850# headers to be copied first can depend on this target.
851.PHONY: all_copied_headers
852all_copied_headers: ;
853
854$(ALL_C_CPP_ETC_OBJECTS): | all_copied_headers
855
856# All the droid stuff, in directories
857.PHONY: files
858files: $(modules_to_install) \
859       $(INSTALLED_ANDROID_INFO_TXT_TARGET)
860
861# -------------------------------------------------------------------
862
863.PHONY: checkbuild
864checkbuild: $(modules_to_check) droid_targets
865ifeq ($(USE_SOONG),true)
866checkbuild: checkbuild-soong
867endif
868ifeq (true,$(ANDROID_BUILD_EVERYTHING_BY_DEFAULT))
869droid: checkbuild
870endif
871
872.PHONY: ramdisk
873ramdisk: $(INSTALLED_RAMDISK_TARGET)
874
875.PHONY: systemtarball
876systemtarball: $(INSTALLED_SYSTEMTARBALL_TARGET)
877
878.PHONY: boottarball
879boottarball: $(INSTALLED_BOOTTARBALL_TARGET)
880
881.PHONY: userdataimage
882userdataimage: $(INSTALLED_USERDATAIMAGE_TARGET)
883
884ifneq (,$(filter userdataimage, $(MAKECMDGOALS)))
885$(call dist-for-goals, userdataimage, $(BUILT_USERDATAIMAGE_TARGET))
886endif
887
888.PHONY: userdatatarball
889userdatatarball: $(INSTALLED_USERDATATARBALL_TARGET)
890
891.PHONY: cacheimage
892cacheimage: $(INSTALLED_CACHEIMAGE_TARGET)
893
894.PHONY: vendorimage
895vendorimage: $(INSTALLED_VENDORIMAGE_TARGET)
896
897.PHONY: bootimage
898bootimage: $(INSTALLED_BOOTIMAGE_TARGET)
899
900# phony target that include any targets in $(ALL_MODULES)
901.PHONY: all_modules
902ifndef BUILD_MODULES_IN_PATHS
903all_modules: $(ALL_MODULES)
904else
905# BUILD_MODULES_IN_PATHS is a list of paths relative to the top of the tree
906build_modules_in_paths := $(patsubst ./%,%,$(BUILD_MODULES_IN_PATHS))
907module_path_patterns := $(foreach p, $(build_modules_in_paths),\
908    $(if $(filter %/,$(p)),$(p)%,$(p)/%))
909my_all_modules := $(sort $(foreach m, $(ALL_MODULES),$(if $(filter\
910    $(module_path_patterns), $(addsuffix /,$(ALL_MODULES.$(m).PATH))),$(m))))
911all_modules: $(my_all_modules)
912endif
913
914
915# Build files and then package it into the rom formats
916.PHONY: droidcore
917droidcore: files \
918	systemimage \
919	$(INSTALLED_BOOTIMAGE_TARGET) \
920	$(INSTALLED_RECOVERYIMAGE_TARGET) \
921	$(INSTALLED_USERDATAIMAGE_TARGET) \
922	$(INSTALLED_CACHEIMAGE_TARGET) \
923	$(INSTALLED_VENDORIMAGE_TARGET) \
924	$(INSTALLED_FILES_FILE) \
925	$(INSTALLED_FILES_FILE_VENDOR)
926
927# dist_files only for putting your library into the dist directory with a full build.
928.PHONY: dist_files
929
930ifneq ($(TARGET_BUILD_APPS),)
931  # If this build is just for apps, only build apps and not the full system by default.
932
933  unbundled_build_modules :=
934  ifneq ($(filter all,$(TARGET_BUILD_APPS)),)
935    # If they used the magic goal "all" then build all apps in the source tree.
936    unbundled_build_modules := $(foreach m,$(sort $(ALL_MODULES)),$(if $(filter APPS,$(ALL_MODULES.$(m).CLASS)),$(m)))
937  else
938    unbundled_build_modules := $(TARGET_BUILD_APPS)
939  endif
940
941  # Dist the installed files if they exist.
942  apps_only_installed_files := $(foreach m,$(unbundled_build_modules),$(ALL_MODULES.$(m).INSTALLED))
943  $(call dist-for-goals,apps_only, $(apps_only_installed_files))
944  # For uninstallable modules such as static Java library, we have to dist the built file,
945  # as <module_name>.<suffix>
946  apps_only_dist_built_files := $(foreach m,$(unbundled_build_modules),$(if $(ALL_MODULES.$(m).INSTALLED),,\
947      $(if $(ALL_MODULES.$(m).BUILT),$(ALL_MODULES.$(m).BUILT):$(m)$(suffix $(ALL_MODULES.$(m).BUILT)))\
948      $(if $(ALL_MODULES.$(m).AAR),$(ALL_MODULES.$(m).AAR):$(m).aar)\
949      ))
950  $(call dist-for-goals,apps_only, $(apps_only_dist_built_files))
951
952  ifeq ($(EMMA_INSTRUMENT),true)
953    $(EMMA_META_ZIP) : $(apps_only_installed_files)
954
955    $(call dist-for-goals,apps_only, $(EMMA_META_ZIP))
956  endif
957
958  $(PROGUARD_DICT_ZIP) : $(apps_only_installed_files)
959  $(call dist-for-goals,apps_only, $(PROGUARD_DICT_ZIP))
960
961  $(SYMBOLS_ZIP) : $(apps_only_installed_files)
962  $(call dist-for-goals,apps_only, $(SYMBOLS_ZIP))
963
964.PHONY: apps_only
965apps_only: $(unbundled_build_modules)
966
967droid_targets: apps_only
968
969# Combine the NOTICE files for a apps_only build
970$(eval $(call combine-notice-files, \
971    $(target_notice_file_txt), \
972    $(target_notice_file_html), \
973    "Notices for files for apps:", \
974    $(TARGET_OUT_NOTICE_FILES), \
975    $(apps_only_installed_files)))
976
977
978else # TARGET_BUILD_APPS
979  $(call dist-for-goals, droidcore, \
980    $(INTERNAL_UPDATE_PACKAGE_TARGET) \
981    $(INTERNAL_OTA_PACKAGE_TARGET) \
982    $(BUILT_OTATOOLS_PACKAGE) \
983    $(SYMBOLS_ZIP) \
984    $(INSTALLED_FILES_FILE) \
985    $(INSTALLED_FILES_FILE_VENDOR) \
986    $(INSTALLED_BUILD_PROP_TARGET) \
987    $(BUILT_TARGET_FILES_PACKAGE) \
988    $(INSTALLED_ANDROID_INFO_TXT_TARGET) \
989    $(INSTALLED_RAMDISK_TARGET) \
990   )
991
992  # Put a copy of the radio/bootloader files in the dist dir.
993  $(foreach f,$(INSTALLED_RADIOIMAGE_TARGET), \
994    $(call dist-for-goals, droidcore, $(f)))
995
996  ifneq ($(ANDROID_BUILD_EMBEDDED),true)
997  ifneq ($(TARGET_BUILD_PDK),true)
998    $(call dist-for-goals, droidcore, \
999      $(APPS_ZIP) \
1000      $(INTERNAL_EMULATOR_PACKAGE_TARGET) \
1001      $(PACKAGE_STATS_FILE) \
1002    )
1003  endif
1004  endif
1005
1006  ifeq ($(EMMA_INSTRUMENT),true)
1007    $(EMMA_META_ZIP) : $(INSTALLED_SYSTEMIMAGE)
1008
1009    $(call dist-for-goals, dist_files, $(EMMA_META_ZIP))
1010  endif
1011
1012# Building a full system-- the default is to build droidcore
1013droid_targets: droidcore dist_files
1014
1015endif # TARGET_BUILD_APPS
1016
1017.PHONY: docs
1018docs: $(ALL_DOCS)
1019
1020.PHONY: sdk
1021ALL_SDK_TARGETS := $(INTERNAL_SDK_TARGET)
1022sdk: $(ALL_SDK_TARGETS)
1023$(call dist-for-goals,sdk win_sdk, \
1024    $(ALL_SDK_TARGETS) \
1025    $(SYMBOLS_ZIP) \
1026    $(INSTALLED_BUILD_PROP_TARGET) \
1027)
1028
1029# umbrella targets to assit engineers in verifying builds
1030.PHONY: java native target host java-host java-target native-host native-target \
1031        java-host-tests java-target-tests native-host-tests native-target-tests \
1032        java-tests native-tests host-tests target-tests tests
1033# some synonyms
1034.PHONY: host-java target-java host-native target-native \
1035        target-java-tests target-native-tests
1036host-java : java-host
1037target-java : java-target
1038host-native : native-host
1039target-native : native-target
1040target-java-tests : java-target-tests
1041target-native-tests : native-target-tests
1042tests : host-tests target-tests
1043
1044# Phony target to run all java compilations that use javac instead of jack.
1045.PHONY: javac-check
1046
1047# To catch more build breakage, check build tests modules in eng and userdebug builds.
1048ifneq ($(ANDROID_NO_TEST_CHECK),true)
1049ifneq ($(TARGET_BUILD_PDK),true)
1050ifneq ($(filter eng userdebug,$(TARGET_BUILD_VARIANT)),)
1051droidcore : target-tests host-tests
1052endif
1053endif
1054endif
1055
1056ifneq (,$(filter samplecode, $(MAKECMDGOALS)))
1057.PHONY: samplecode
1058sample_MODULES := $(sort $(call get-tagged-modules,samples))
1059sample_APKS_DEST_PATH := $(TARGET_COMMON_OUT_ROOT)/samples
1060sample_APKS_COLLECTION := \
1061        $(foreach module,$(sample_MODULES),$(sample_APKS_DEST_PATH)/$(notdir $(module)))
1062$(foreach module,$(sample_MODULES),$(eval $(call \
1063        copy-one-file,$(module),$(sample_APKS_DEST_PATH)/$(notdir $(module)))))
1064sample_ADDITIONAL_INSTALLED := \
1065        $(filter-out $(modules_to_install) $(modules_to_check),$(sample_MODULES))
1066samplecode: $(sample_APKS_COLLECTION)
1067	@echo "Collect sample code apks: $^"
1068	# remove apks that are not intended to be installed.
1069	rm -f $(sample_ADDITIONAL_INSTALLED)
1070endif  # samplecode in $(MAKECMDGOALS)
1071
1072.PHONY: findbugs
1073findbugs: $(INTERNAL_FINDBUGS_HTML_TARGET) $(INTERNAL_FINDBUGS_XML_TARGET)
1074
1075.PHONY: clean
1076clean:
1077	@rm -rf $(OUT_DIR)/*
1078	@echo "Entire build directory removed."
1079
1080.PHONY: clobber
1081clobber: clean
1082
1083# The rules for dataclean and installclean are defined in cleanbuild.mk.
1084
1085#xxx scrape this from ALL_MODULE_NAME_TAGS
1086.PHONY: modules
1087modules:
1088	@echo "Available sub-modules:"
1089	@echo "$(call module-names-for-tag-list,$(ALL_MODULE_TAGS))" | \
1090	      tr -s ' ' '\n' | sort -u | $(COLUMN)
1091
1092.PHONY: showcommands
1093showcommands:
1094	@echo >/dev/null
1095
1096.PHONY: nothing
1097nothing:
1098	@echo Successfully read the makefiles.
1099endif # KATI
1100