< prev index next >

make/ZipSource.gmk

Print this page




  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 default: all
  27 
  28 include $(SPEC)
  29 include MakeBase.gmk
  30 include JavaCompilation.gmk
  31 include Modules.gmk
  32 
  33 SRC_ZIP_WORK_DIR := $(SUPPORT_OUTPUTDIR)/src
  34 
  35 # Hook to include the corresponding custom file, if present.
  36 $(eval $(call IncludeCustomExtension, , ZipSource.gmk))
  37 
  38 ################################################################################
  39 # Create the directory structure for src.zip using symlinks.
  40 # <module>/<package>/<file>.java
  41 
  42 # Find extra source dirs for a module that are not part of normal compilation
  43 # but should be included in src.zip.
  44 # $1: Module to find dirs for
  45 ExtraSrcDirs = \
  46     $(wildcard $(SUPPORT_OUTPUTDIR)/rmic/$(strip $1))
  47 
  48 ALL_MODULES := $(FindAllModules)
  49 
  50 # Generate the src dirs in the first make invocation and then call this makefile
  51 # again to create src.zip.
  52 $(foreach m, $(ALL_MODULES), \
  53   $(foreach d, $(call FindModuleSrcDirs, $m) $(call ExtraSrcDirs, $m), \
  54     $(eval $d_TARGET := $(SRC_ZIP_WORK_DIR)/$(patsubst $(TOPDIR)/%,%,$d)/$m) \
  55     $(if $(SRC_GENERATED), , \
  56       $(eval $$($d_TARGET): $d ; \




  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 default: all
  27 
  28 include $(SPEC)
  29 include MakeBase.gmk
  30 include JavaCompilation.gmk
  31 include Modules.gmk
  32 
  33 SRC_ZIP_WORK_DIR := $(SUPPORT_OUTPUTDIR)/src
  34 
  35 # Hook to include the corresponding custom file, if present.
  36 $(eval $(call IncludeCustomExtension, ZipSource.gmk))
  37 
  38 ################################################################################
  39 # Create the directory structure for src.zip using symlinks.
  40 # <module>/<package>/<file>.java
  41 
  42 # Find extra source dirs for a module that are not part of normal compilation
  43 # but should be included in src.zip.
  44 # $1: Module to find dirs for
  45 ExtraSrcDirs = \
  46     $(wildcard $(SUPPORT_OUTPUTDIR)/rmic/$(strip $1))
  47 
  48 ALL_MODULES := $(FindAllModules)
  49 
  50 # Generate the src dirs in the first make invocation and then call this makefile
  51 # again to create src.zip.
  52 $(foreach m, $(ALL_MODULES), \
  53   $(foreach d, $(call FindModuleSrcDirs, $m) $(call ExtraSrcDirs, $m), \
  54     $(eval $d_TARGET := $(SRC_ZIP_WORK_DIR)/$(patsubst $(TOPDIR)/%,%,$d)/$m) \
  55     $(if $(SRC_GENERATED), , \
  56       $(eval $$($d_TARGET): $d ; \


< prev index next >