make/idea/idea.gmk
author xyin
Tue, 13 Feb 2018 12:26:22 +0800
changeset 48852 478e198da84b
parent 48667 f2344724a475
permissions -rw-r--r--
8196770: Add JNDI test com/sun/jndi/ldap/blits/AddTests/AddNewEntry.java Reviewed-by: vtewari, rriggs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37861
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     1
include Makefile
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     2
include make/MainSupport.gmk
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     3
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     4
.PHONY: idea
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     5
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     6
ifeq ($(SPEC),)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     7
  ifneq ($(words $(SPECS)),1)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     8
	@echo "Error: Multiple build specification files found. Please select one explicitly."
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
     9
	@exit 2
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    10
  endif
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    11
  idea:
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    12
	@cd $(topdir)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    13
	@$(MAKE) $(MFLAGS) $(MAKE_LOG_FLAGS) -r -R -j 1 -f $(topdir)/make/idea/idea.gmk SPEC=$(SPECS) HAS_SPEC=true ACTUAL_TOPDIR=$(topdir) MODULES="$(MODULES)" idea
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    14
else #with SPEC
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    15
  include make/common/Modules.gmk
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    16
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    17
  ifeq ($(MODULES),)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    18
    SEL_MODULES := $(call FindAllModules)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    19
  else
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    20
    SEL_MODULES := $(MODULES)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    21
  endif
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    22
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    23
  idea:
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    24
	$(ECHO) "SUPPORT=$(SUPPORT_OUTPUTDIR)" >> $(OUT)
48667
f2344724a475 8196081: Add support for customized intellij project templates
mcimadamore
parents: 37976
diff changeset
    25
	$(ECHO) "MODULE_ROOTS=\"$(foreach mod, $(SEL_MODULES), $(call FindModuleSrcDirs,$(mod)))\"" >> $(OUT)
37861
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    26
	$(ECHO) "MODULE_NAMES=\"$(strip $(foreach mod, $(SEL_MODULES), $(mod)))\"" >> $(OUT)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    27
	$(ECHO) "SEL_MODULES=\"$(SEL_MODULES)\"" >> $(OUT)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    28
	$(ECHO) "BOOT_JDK=\"$(BOOT_JDK)\"" >> $(OUT)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    29
	$(ECHO) "CYGPATH=\"$(CYGPATH)\"" >> $(OUT)
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    30
	$(ECHO) "SPEC=\"$(SPEC)\"" >> $(OUT)
37976
9cc5debe0f47 8157061: Add support for running jtreg tests from IntelliJ project
mcimadamore
parents: 37861
diff changeset
    31
	$(ECHO) "JT_HOME=\"$(JT_HOME)\"" >> $(OUT)
37861
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    32
53d85619d7fe 8074716: IntelliJ IDEA project support
chegar
parents:
diff changeset
    33
endif