Main.gmk revision 1153:ce36ddb6dc61
1# 2# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# This code is free software; you can redistribute it and/or modify it 6# under the terms of the GNU General Public License version 2 only, as 7# published by the Free Software Foundation. Oracle designates this 8# particular file as subject to the "Classpath" exception as provided 9# by Oracle in the LICENSE file that accompanied this code. 10# 11# This code is distributed in the hope that it will be useful, but WITHOUT 12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14# version 2 for more details (a copy is included in the LICENSE file that 15# accompanied this code). 16# 17# You should have received a copy of the GNU General Public License version 18# 2 along with this work; if not, write to the Free Software Foundation, 19# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20# 21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22# or visit www.oracle.com if you need additional information or have any 23# questions. 24# 25 26################################################################################ 27# This is the main makefile containing most actual top level targets. It needs 28# to be called with a SPEC file defined. 29 30# Declare default target 31default: 32 33# Now load the spec 34include $(SPEC) 35 36include $(SRC_ROOT)/make/MakeHelpers.gmk 37 38# Load the vital tools for all the makefiles. 39include $(SRC_ROOT)/make/common/MakeBase.gmk 40include $(SRC_ROOT)/make/common/Modules.gmk 41 42# Load common profile names definitions 43include $(JDK_TOPDIR)/make/ProfileNames.gmk 44 45# Declare ALL_TARGETS as an immediate variable. This variable is a list of all 46# valid top level targets. It's used to declare them all as PHONY and to 47# generate the -only targets. 48ALL_TARGETS := 49 50# Hook to include the corresponding custom file, if present. 51$(eval $(call IncludeCustomExtension, , Main.gmk)) 52 53# All modules for the current target platform. 54# Manually add jdk.hotspot.agent for now. 55ALL_MODULES := $(call FindAllModules) jdk.hotspot.agent 56 57################################################################################ 58################################################################################ 59# 60# Recipes for all targets. Only recipes, dependencies are declared later. 61# 62################################################################################ 63 64################################################################################ 65# Interim/build tools targets, compiling tools used during the build 66 67interim-langtools: 68 +($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterim.gmk) 69 70interim-corba: 71 +($(CD) $(CORBA_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileCorba.gmk) 72 73interim-rmic: 74 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileInterimRmic.gmk) 75 76build-tools-jdk: 77 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Tools.gmk java-tools) 78 79ALL_TARGETS += interim-langtools interim-corba build-tools-jdk 80 81################################################################################ 82# Special targets for certain modules 83 84import-hotspot: 85 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Import.gmk) 86 87unpack-sec: 88 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f UnpackSecurity.gmk) 89 90policy-jars: 91 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CreatePolicyJars.gmk) 92 93ALL_TARGETS += import-hotspot unpack-sec policy-jars 94 95################################################################################ 96# Gensrc targets, generating source before java compilation can be done 97JDK_GENSRC_MODULES := $(call FindModulesWithMakefileFor, gensrc, Gensrc) 98LANGTOOLS_GENSRC_MODULES := jdk.compiler.tools 99CORBA_GENSRC_MODULES := java.corba 100GENSRC_MODULES := $(JDK_GENSRC_MODULES) $(LANGTOOLS_GENSRC_MODULES) \ 101 $(CORBA_GENSRC_MODULES) 102JDK_GENSRC_TARGETS := $(addsuffix -gensrc, $(JDK_GENSRC_MODULES)) 103LANGTOOLS_GENSRC_TARGETS := $(addsuffix -gensrc, $(LANGTOOLS_GENSRC_MODULES)) 104CORBA_GENSRC_TARGETS := $(addsuffix -gensrc, $(CORBA_GENSRC_MODULES)) 105GENSRC_TARGETS := $(addsuffix -gensrc, $(GENSRC_MODULES)) 106 107jdk.compiler.tools-gensrc: 108 +($(CD) $(LANGTOOLS_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f GensrcLangtools.gmk) 109 110java.corba-gensrc: 111 +($(CD) $(CORBA_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f GensrcCorba.gmk) 112 113# Declare recipes for all jdk <module>-gensrc targets 114$(foreach m, $(JDK_GENSRC_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \ 115 $m, gensrc, gensrc, Gensrc))) 116 117ALL_TARGETS += $(GENSRC_TARGETS) 118 119################################################################################ 120# Generate data targets 121GENDATA_MODULES := $(call FindModulesWithMakefileFor, gendata, Gendata) 122GENDATA_TARGETS := $(addsuffix -gendata, $(GENDATA_MODULES)) 123 124# Declare recipes for all <module>-gendata targets 125$(foreach m, $(GENDATA_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \ 126 $m, gendata, gendata, Gendata))) 127 128$(foreach m, $(GENDATA_MODULES), $(eval $(call DeclareGendataRecipe,$m))) 129 130ALL_TARGETS += $(GENDATA_TARGETS) 131 132################################################################################ 133# Copy files targets 134COPY_MODULES := $(call FindModulesWithMakefileFor, copy, Copy) 135COPY_TARGETS := $(addsuffix -copy, $(COPY_MODULES)) 136 137# Declare recipes for all <module>-copy targets 138$(foreach m, $(COPY_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \ 139 $m, copy, copy, Copy))) 140 141ALL_TARGETS += $(COPY_TARGETS) 142 143################################################################################ 144# Targets for compiling all java modules. Nashorn is treated separately. 145JAVA_MODULES := $(call FindJavaModules) 146JAVA_TARGETS := $(addsuffix -java, $(JAVA_MODULES)) 147 148define DeclareCompileJavaRecipe 149 $1-java: 150 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f CompileJavaModules.gmk \ 151 $1 JAVA_MODULES=$1) 152endef 153 154$(foreach m, $(filter-out jdk.scripting.nashorn, $(JAVA_MODULES)), \ 155 $(eval $(call DeclareCompileJavaRecipe,$m))) 156 157# Build nashorn. Needs to be compiled separately from the rest of the modules 158# due to nasgen. 159jdk.scripting.nashorn-java: 160 +($(CD) $(NASHORN_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f BuildNashorn.gmk compile) 161 162ALL_TARGETS += $(JAVA_TARGETS) 163 164################################################################################ 165# Targets for running rmic. 166RMIC_MODULES := $(call FindModulesWithMakefileFor, rmic, Rmic) 167RMIC_TARGETS := $(addsuffix -rmic, $(RMIC_MODULES)) 168 169# Declare recipes for all <module>-rmic targets 170$(foreach m, $(RMIC_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \ 171 $m, rmic, rmic, Rmic))) 172 173ALL_TARGETS += $(RMIC_TARGETS) 174 175################################################################################ 176# Targets for compiling native libraries 177ALL_LIB_MODULES := $(call FindModulesWithMakefileFor, lib, Lib) 178LIB_MODULES := $(filter $(ALL_MODULES), $(ALL_LIB_MODULES)) 179LIB_TARGETS := $(addsuffix -libs, $(LIB_MODULES)) 180 181# Declare recipes for all <module>-libs targets 182$(foreach m, $(LIB_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \ 183 $m, libs, lib, Lib))) 184 185ALL_TARGETS += $(LIB_TARGETS) 186 187################################################################################ 188# Targets for compiling native executables 189ALL_LAUNCHER_MODULES := $(call FindModulesWithMakefileFor, launcher, Launcher) 190LAUNCHER_MODULES := $(filter $(ALL_MODULES), $(ALL_LAUNCHER_MODULES)) 191LAUNCHER_TARGETS := $(addsuffix -launchers, $(LAUNCHER_MODULES)) 192 193# Declare recipes for all <module>-launchers targets 194$(foreach m, $(LAUNCHER_MODULES), $(eval $(call DeclareRecipeForModuleMakefile, \ 195 $m, launchers, launcher, Launcher))) 196 197ALL_TARGETS += $(LAUNCHER_TARGETS) 198 199################################################################################ 200# Build hotspot target 201 202ifeq ($(BUILD_HOTSPOT),true) 203 hotspot: 204 ($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f HotspotWrapper.gmk) 205endif 206 207ALL_TARGETS += hotspot 208 209################################################################################ 210# Build demos and samples targets 211 212demos: 213 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CompileDemos.gmk) 214 215samples: 216 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopySamples.gmk) 217 218ALL_TARGETS += demos samples 219 220################################################################################ 221# Image targets 222 223# Stores the tips for each repository. This file is be used when constructing the jdk image and can be 224# used to track the exact sources used to build that image. 225source-tips: $(OUTPUT_ROOT)/source_tips 226$(OUTPUT_ROOT)/source_tips: FRC 227 @$(MKDIR) -p $(@D) 228 @$(RM) $@ 229 @$(call GetSourceTips) 230 231security-jars: 232 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CreateSecurityJars.gmk) 233 234nashorn-jar: 235 +($(CD) $(NASHORN_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f BuildNashorn.gmk all) 236 237# Creates the jar files (rt.jar resources.jar etc) 238main-jars: 239 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) PROFILE="" -f CreateJars.gmk) 240 241# Creates the images (j2sdk-image j2re-image etc) 242images: 243 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) PROFILE="" -f Images.gmk) 244 ifeq ($(OPENJDK_TARGET_OS), macosx) 245 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f Bundles.gmk) 246 endif 247 248# Create Compact Profile jars 249PROFILE_JARS_TARGETS := $(addsuffix -jars, $(ALL_PROFILES)) 250$(PROFILE_JARS_TARGETS): 251 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) PROFILE=$(@:%-jars=%) -f CreateJars.gmk) 252 253# Create Compact Profile images 254PROFILE_IMAGES_TARGETS := $(addsuffix -images, $(ALL_PROFILES)) 255$(PROFILE_IMAGES_TARGETS): 256 +($(CD) $(JDK_TOPDIR)/make && $(MAKE) $(MAKE_ARGS) PROFILE=$(@:%-images=%) \ 257 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/j2re-$(word $(call profile_number,$(@:%-images=%)),$(PROFILE_NAMES))-image \ 258 -f Images.gmk profile-image) 259 260profiles-oscheck: 261 ifneq ($(OPENJDK_TARGET_OS), linux) 262 @echo "Error: The Java SE 8 Compact Profiles are only implemented for Linux at this time" && exit 1 263 endif 264 265bootcycle-images: 266 @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image 267 +$(MAKE) $(MAKE_ARGS) -f Main.gmk SPEC=$(dir $(SPEC))bootcycle-spec.gmk images 268 269ALL_TARGETS += source-tips security-jars nashorn-jar main-jars images \ 270 $(PROFILE_JARS_TARGETS) $(PROFILE_IMAGES_TARGETS) profiles-oscheck \ 271 bootcycle-images 272 273################################################################################ 274# Docs targets 275 276docs-javadoc: 277 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs) 278 279docs-jvmtidoc: 280 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk jvmtidocs) 281 282ALL_TARGETS += docs-javadoc docs-jvmtidoc 283 284################################################################################ 285# Test target 286 287test: 288 ($(CD) $(SRC_ROOT)/test && $(MAKE) $(MAKE_ARGS) -j1 -k MAKEFLAGS= \ 289 JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_OUTPUT_DIR) \ 290 ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true 291 292test-make: 293 ($(CD) $(SRC_ROOT)/test/make && $(MAKE) $(MAKE_ARGS) -f TestMake.gmk $(TEST_TARGET)) 294 295ALL_TARGETS += test test-make 296 297################################################################################ 298# Verification targets 299 300verify-modules: 301 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f CheckModules.gmk) 302 303ALL_TARGETS += verify-modules 304 305################################################################################ 306# Install targets 307 308install: 309 +($(CD) $(SRC_ROOT)/make && $(MAKE) $(MAKE_ARGS) -f Install.gmk) 310 311ALL_TARGETS += install 312 313################################################################################ 314# 315# Dependency declarations between targets. 316# 317# These are declared in two groups. First all dependencies between targets that 318# have recipes above as these dependencies may be disabled. Then the aggregator 319# targets that do not have recipes of their own, which will never have their 320# dependencies disabled. 321# 322################################################################################ 323# Targets with recipes above 324 325# If running an *-only target, parallel execution and dependencies between 326# recipe targets are disabled. This makes it possible to run a select set of 327# recipe targets in order. It's the responsibility of the user to make sure 328# all prerequisites are fulfilled. 329ifneq ($(findstring -only, $(MAKECMDGOALS)), ) 330 .NOTPARALLEL: 331else 332 interim-langtools: $(LANGTOOLS_GENSRC_TARGETS) 333 334 build-tools-jdk: interim-langtools 335 336 $(CORBA_GENSRC_TARGETS): interim-langtools 337 338 $(JDK_GENSRC_TARGETS): interim-langtools build-tools-jdk 339 340 interim-corba: $(CORBA_GENSRC_TARGETS) 341 342 $(GENDATA_TARGETS): interim-langtools build-tools-jdk 343 344 interim-rmic: interim-langtools 345 346 $(RMIC_TARGETS): interim-langtools interim-corba interim-rmic 347 348 import-hotspot: hotspot 349 350 $(LIB_TARGETS): import-hotspot 351 352 $(LAUNCHER_TARGETS): java.base-libs 353 354 # The demos are currently linking to libjvm and libjava, just like all other 355 # jdk libs, even though they don't need to. To avoid warnings, make sure they 356 # aren't built until after libjava and libjvm are available to link to. 357 demos: $(JAVA_TARGETS) 358 359 # Declare dependency from <module>-java to <module>-gensrc 360 $(foreach m, $(GENSRC_MODULES), $(eval $m-java: $m-gensrc)) 361 362 # Declare dependencies between java modules 363 $(foreach m, $(JAVA_MODULES), \ 364 $(eval $m-java: $(addsuffix -java, $(filter $(JAVA_MODULES), \ 365 $(call FindDepsForModule,$m))))) 366 367 # Declare dependencies between <module>-rmic to <module>-java 368 $(foreach m, $(RMIC_MODULES), $(eval $m-rmic: $m-java)) 369 370 # Declare dependencies from <module>-lib to <module>-java 371 # Skip jdk.jdwp.agent as it contains no java code. 372 $(foreach m, $(filter-out jdk.jdwp.agent, $(LIB_MODULES)), $(eval $m-libs: $m-java)) 373 374 # Declare dependencies from all other <module>-lib to java.base-lib 375 $(foreach t, $(filter-out java.base-libs, $(LIB_TARGETS)), \ 376 $(eval $t: java.base-libs)) 377 # Declare the special case dependency for jdk.deploy.osx where libosx 378 # links against libosxapp. 379 jdk.deploy.osx-libs: java.desktop-libs 380 381 # This dependency needs to be explicitly declared. jdk.jdi-gensrc generates a 382 # header file used by jdk.jdwp libs. 383 jdk.jdwp.agent-libs: jdk.jdi-gensrc 384 385 # Explicitly add dependencies for special targets 386 java.base-java: unpack-sec 387 388 jdk.dev-gendata: java rmic 389 390 security-jars: java 391 392 nashorn-jar: jdk.scripting.nashorn-java 393 394 main-jars: java rmic security-jars nashorn-jar policy-jars import-hotspot gendata 395 396 # On windows, the jars target needs to wait for jgss libs to be built. 397 # Should ideally split out the sec-bin zip file generation to avoid 398 # this dependency. 399 ifeq ($(OPENJDK_TARGET_OS), windows) 400 main-jars: java.security.jgss-libs 401 endif 402 403 images: jars demos samples exploded-image source-tips 404 405 bootcycle-images: images 406 407 # Need to depend on jars as otherwise there will a race between all the 408 # invocations of CreateJars.gmk. 409 $(PROFILE_JARS_TARGETS): jars profiles-oscheck 410 411 $(PROFILE_IMAGES_TARGETS): demos samples exploded-image source-tips 412 413 # Declare dependencies from <profile>-images to <profile>-jars 414 $(foreach p, $(ALL_PROFILES), $(eval $p-images: $p-jars)) 415 416 docs-javadoc: $(GENSRC_TARGETS) rmic 417 418 docs-jvmtidoc: hotspot 419 420 test: exploded-image 421 422 verify-modules: exploded-image 423 424endif 425 426################################################################################ 427# Virtual targets without recipes 428 429gensrc: $(GENSRC_TARGETS) 430 431gendata: $(GENDATA_TARGETS) 432 433copy: $(COPY_TARGETS) 434 435java: $(JAVA_TARGETS) 436 437rmic: $(RMIC_TARGETS) 438 439libs: $(LIB_TARGETS) 440 441launchers: $(LAUNCHER_TARGETS) 442 443# Explicitly add dependencies for these special targets 444java.base: import-hotspot policy-jars 445 446# Declare dependencies from <module> to all the individual targets specific 447# to that module <module>-*. 448$(foreach m, $(GENSRC_MODULES), $(eval $m: $m-gensrc)) 449$(foreach m, $(JAVA_MODULES), $(eval $m: $m-java)) 450$(foreach m, $(GENDATA_MODULES), $(eval $m: $m-gendata)) 451$(foreach m, $(RMIC_MODULES), $(eval $m: $m-rmic)) 452$(foreach m, $(LIB_MODULES), $(eval $m: $m-libs)) 453$(foreach m, $(LAUNCHER_MODULES), $(eval $m: $m-launchers)) 454$(foreach m, $(COPY_MODULES), $(eval $m: $m-copy)) 455 456ALL_MODULE_TARGETS := $(sort $(GENSRC_MODULES) $(JAVA_MODULES) \ 457 $(GENDATA_MODULES) $(LIB_MODULES) $(LAUNCHER_MODULES) $(COPY_MODULES)) 458 459exploded-image: $(ALL_MODULE_TARGETS) 460# The old 'jdk' target most closely matches the new exploded-image. Keep an 461# alias for ease of use. 462jdk: exploded-image 463 464jars: main-jars nashorn-jar security-jars policy-jars 465 466# Make each profile name a target that depends on it's images target. 467$(foreach p, $(ALL_PROFILES), $(eval $(p): $(p)-images $(p)-jars)) 468 469profiles: $(ALL_PROFILES) 470 471docs: docs-javadoc docs-jvmtidoc 472 473ALL_TARGETS += gensrc gendata copy java rmic libs launchers \ 474 $(ALL_MODULE_TARGETS) exploded-image jdk jars \ 475 $(ALL_PROFILES) profiles docs 476 477################################################################################ 478 479all: images docs verify-modules 480default: exploded-image 481 482ALL_TARGETS += default all 483 484################################################################################ 485################################################################################ 486# 487# Clean targets 488# 489################################################################################ 490 491# If running a clean target, disable parallel execution 492ifneq ($(findstring clean, $(MAKECMDGOALS)), ) 493 .NOTPARALLEL: 494 # It's not recommended to run additional targets to clean on the same make 495 # command line. Try to detect this and issue a warning. 496 ifneq ($(filter-out clean%, $(MAKECMDGOALS)), ) 497 $(warning Mixing clean targets with normal build targets will not work well \ 498 and is not recommended.) 499 endif 500endif 501 502CLEAN_COMPONENTS += langtools corba hotspot jdk nashorn images \ 503 bootcycle-build docs docstemp test 504CLEAN_TARGETS := $(addprefix clean-, $(CLEAN_COMPONENTS)) 505 506# Remove everything, except the output from configure. 507clean: $(CLEAN_TARGETS) 508 ($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*) 509 $(ECHO) Cleaned all build artifacts. 510 511$(CLEAN_TARGETS): 512 $(call CleanComponent,$(patsubst clean-%, %, $@)) 513 514clean-docs: clean-docstemp 515 516# Remove everything, including configure configuration. 517# If the output directory was created by configure and now becomes empty, remove it as well. 518dist-clean: clean 519 ($(CD) $(OUTPUT_ROOT) && $(RM) -r *spec.gmk config.* configure-arguments \ 520 Makefile compare.sh spec.sh tmp javacservers) 521 $(if $(filter $(CONF_NAME),$(notdir $(OUTPUT_ROOT))), \ 522 if test "x`$(LS) $(OUTPUT_ROOT)`" != x; then \ 523 $(ECHO) "Warning: Not removing non-empty configuration directory for '$(CONF_NAME)'" ; \ 524 else \ 525 ($(CD) $(SRC_ROOT) && $(ECHO) "Removing configuration directory for '$(CONF_NAME)'" \ 526 && $(RM) -r $(OUTPUT_ROOT)) \ 527 fi \ 528 ) 529 $(ECHO) Cleaned everything, you will have to re-run configure. 530 531ALL_TARGETS += clean dist-clean $(CLEAN_TARGETS) 532 533################################################################################ 534 535# Setup a rule for SPEC file that fails if executed. This check makes sure the 536# configuration is up to date after changes to configure. 537ifeq ($(findstring reconfigure, $(MAKECMDGOALS)), ) 538 $(SPEC): $(wildcard $(SRC_ROOT)/common/autoconf/*) 539 @$(ECHO) "ERROR: $(SPEC) is not up to date." 540 @$(ECHO) "Please rerun configure! Easiest way to do this is by running" 541 @$(ECHO) "'make reconfigure'." 542 @$(ECHO) "It may also be ignored by setting IGNORE_OLD_CONFIG=true" 543 @if test "x$(IGNORE_OLD_CONFIG)" != "xtrue"; then exit 1; fi 544endif 545 546reconfigure: 547 ifneq ($(CONFIGURE_COMMAND_LINE), ) 548 @$(ECHO) "Re-running configure using arguments '$(CONFIGURE_COMMAND_LINE)'" 549 else 550 @$(ECHO) "Re-running configure using default settings" 551 endif 552 @( cd $(OUTPUT_ROOT) && $(BASH) $(TOPDIR)/configure $(CONFIGURE_COMMAND_LINE) ) 553 554ALL_TARGETS += reconfigure 555 556################################################################################ 557# Declare *-only targets for each normal target 558$(foreach t, $(ALL_TARGETS), $(eval $(t)-only: $(t))) 559 560ALL_TARGETS += $(addsuffix -only, $(ALL_TARGETS)) 561 562################################################################################ 563 564.PHONY: $(ALL_TARGETS) 565 566include $(SRC_ROOT)/make/Jprt.gmk 567 568FRC: # Force target 569