corba/make/common/internal/Resources.gmk
author mullan
Tue, 13 Aug 2013 10:07:56 -0400
changeset 19397 b87df682817d
parent 14238 172cbca33d89
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
#
14238
172cbca33d89 7196086: update copyright years for files in corba repository (JDK 8)
coffeys
parents: 12141
diff changeset
     2
# Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
02bb8761fcce Initial load
duke
parents:
diff changeset
     4
#
02bb8761fcce Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
02bb8761fcce Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    10
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
02bb8761fcce Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
02bb8761fcce Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
02bb8761fcce Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
02bb8761fcce Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
02bb8761fcce Initial load
duke
parents:
diff changeset
    16
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
02bb8761fcce Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
02bb8761fcce Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
02bb8761fcce Initial load
duke
parents:
diff changeset
    20
#
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    23
# questions.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
# 
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
# Generic mechanism for installing properties files, resource bundles,
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
#   and other resource files.
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
# FILES_properties should be defined.
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
# FILES_compiled_properties should be defined.
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
# 
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
# If COMPILED_PROPERTIES_SUPERCLASS is defined, ALL the FILES_properties
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
# files will be compiled into java with this super class.
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
# You can add locales to LOCALE_SUFFIXES explicitly, or use the
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
# LOCALE_SET_DEFINITION variable to add some pre-defined locale lists.
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
# The LOCALE_SET_DEFINITION can have the value: jre, plugin, or jdk.
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
# Resource bundles to be installed are identified using the following variables.
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
# Note that only the file name of the base bundle is given; localized versions
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
# are added automatically. For Java files, use a format suitable for inclusion
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
# in the FILES_java list; dito for properties, all relative paths.
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
#   NEW_RESOURCE_BUNDLES_JAVA        - new resource bundles implemented in
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
#                                      Java, not localized
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
#   NEW_RESOURCE_BUNDLES_PROPERTIES  - new resource bundles implemented as
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
#                                      properties files, not localized
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
#   RESOURCE_BUNDLES_JAVA            - resource bundles implemented in
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
#                                      Java, localized
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
#   RESOURCE_BUNDLES_PROPERTIES      - new resource bundles implemented as
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
#                                      properties files, localized
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
# The following variable is now used for most .properties files in the JDK. 
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
# These properties files are converted into java and compiled with javac.
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
# The resulting .class files are usually smaller and are always faster to load. 
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
# The relative path to the properties file becomes a relative path to a
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
# java source file.
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
#   RESOURCE_BUNDLES_COMPILED_PROPERTIES - resource bundles implemented as
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
#                                          properties files, localized
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
#   NEW_RESOURCE_BUNDLES_COMPILED_PROPERTIES - same as above, not localized
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
# Other properties files to be installed are identified using the variable:
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
#   OTHER_PROPERTIES
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
#
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
# Compile properties files into java source?
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
ifdef COMPILED_PROPERTIES_SUPERCLASS
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
  # Add all properties files to the compiled properties list (all or nothing)
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
  COMPILED_PROPERTIES += $(FILES_compiled_properties) $(FILES_properties)
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
else
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
  COMPILED_PROPERTIES_SUPERCLASS = ListResourceBundle
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
  COMPILED_PROPERTIES += $(FILES_compiled_properties)
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
# Determine the locale suffixes needed beyond the base bundle
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
ifeq ($(LOCALE_SET_DEFINITION), plugin)
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
  LOCALE_SUFFIXES += $(PLUGIN_LOCALES)
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
ifeq ($(LOCALE_SET_DEFINITION), jdk)
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
  LOCALE_SUFFIXES += $(JDK_LOCALES)
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
ifeq ($(LOCALE_SET_DEFINITION), jre)
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
  LOCALE_SUFFIXES += $(JRE_LOCALES)
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
# Java files get tacked onto the standard list of files to compile
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
RESOURCE_BUNDLE_FILES_java += $(NEW_RESOURCE_BUNDLES_JAVA)
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
RESOURCE_BUNDLE_FILES_java += $(RESOURCE_BUNDLES_JAVA) \
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
    $(foreach file,$(RESOURCE_BUNDLES_JAVA), \
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
       $(foreach locale,$(LOCALE_SUFFIXES), \
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
	  $(basename $(file))_$(locale).java))
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
# Add to java sources list
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
FILES_java += $(RESOURCE_BUNDLE_FILES_java)
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
# Compiled properties files are translated to .java.
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
#   The .java files are generated into GENSRCDIR.
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
COMPILED_PROPERTIES += $(NEW_RESOURCE_BUNDLES_COMPILED_PROPERTIES)
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
COMPILED_PROPERTIES += $(RESOURCE_BUNDLES_COMPILED_PROPERTIES) \
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
    $(foreach file,$(RESOURCE_BUNDLES_COMPILED_PROPERTIES),\
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
      $(foreach locale,$(LOCALE_SUFFIXES),\
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
	 $(basename $(file))_$(locale)$(suffix $(file))))
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
# Add to java sources list
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
FILES_java += $(COMPILED_PROPERTIES:%.properties=%.java)
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
# Non-compiled files
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
PROPERTIES_FILES += $(NEW_RESOURCE_BUNDLES_PROPERTIES)
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
PROPERTIES_FILES += $(RESOURCE_BUNDLES_PROPERTIES) \
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
    $(foreach file,$(RESOURCE_BUNDLES_PROPERTIES), \
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
       $(foreach locale,$(LOCALE_SUFFIXES), \
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
	  $(basename $(file))_$(locale)$(suffix $(file))))
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
PROPERTIES_FILES += $(OTHER_PROPERTIES)
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
# Compile Properties tool
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
COMPILEPROPERTIES_JARFILE = $(BUILDTOOLJARDIR)/compileproperties.jar
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
# Strip Properties tool
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
STRIPPROPERTIES_JARFILE = $(BUILDTOOLJARDIR)/stripproperties.jar
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
# Process and strip all non-compiled properties files (in a batch mode)
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
STRIP_PROP_FILES = $(PROPERTIES_FILES:%=$(CLASSDESTDIR)/%)
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
# To efficiently strip properties we use one run of StripProperties. 
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
# This macro gathers an option for use later.
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
STRIP_PROP_options=$(TEMPDIR)/strip_prop_options
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
define install-properties-file
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
$(install-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
$(CHMOD) a+rw $@
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
@$(ECHO) "# Adding to strip properties list: $@"
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
$(ECHO) "$@" >> $(STRIP_PROP_options)
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
endef
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
# Constructs command line options file
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
$(STRIP_PROP_options): $(STRIP_PROP_FILES)
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
	@$(TOUCH) $@
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
strip_prop_options_clean:
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
	@$(RM) $(STRIP_PROP_options)
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
# Strip the properties files
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
strip_all_props: $(STRIPPROPERTIES_JARFILE) $(STRIP_PROP_options)
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
	@if [ -s $(STRIP_PROP_options) ] ; then \
12141
26b749f5abc0 7153266: Adjustments to corba strip property utility (neutral to builds)
erikj
parents: 5555
diff changeset
   152
          $(ECHO) "$(BOOT_JAVA_CMD) -jar $(STRIPPROPERTIES_JARFILE) @$(STRIP_PROP_options)" ; \
26b749f5abc0 7153266: Adjustments to corba strip property utility (neutral to builds)
erikj
parents: 5555
diff changeset
   153
          $(BOOT_JAVA_CMD) -jar $(STRIPPROPERTIES_JARFILE) @$(STRIP_PROP_options) ; \
4
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
        fi
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
	@$(java-vm-cleanup)
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
# Creates files in CLASSDESTDIR
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
#
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
# In some cases, we move files from package to resources subdir
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
$(CLASSDESTDIR)/$(PKGDIR)/resources/%.properties: \
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
	     $(SHARE_SRC)/classes/$(PKGDIR)/%.properties
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
	$(install-properties-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
$(CLASSDESTDIR)/%.properties: $(SHARE_SRC)/classes/%.properties
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
	$(install-properties-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
$(CLASSDESTDIR)/%.res: $(SHARE_SRC)/classes/%.res
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
	$(install-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
$(CLASSDESTDIR)/%.dtd: $(SHARE_SRC)/classes/%.dtd
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
	$(install-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
$(CLASSDESTDIR)/%.xml: $(SHARE_SRC)/classes/%.xml
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
	$(install-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
$(CLASSDESTDIR)/%.prp: $(SHARE_SRC)/classes/%.prp
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
	$(install-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
$(GENSRCDIR)/%.java: $(PLATFORM_SRC)/classes/%.properties
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
	$(add-property-java-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
$(GENSRCDIR)/%.java: $(SHARE_SRC)/classes/%.properties
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
	$(add-property-java-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
$(GENSRCDIR)/%.java: $(GENSRCDIR)/%.properties
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
	$(add-property-java-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
# Create HK java file from zh_TW (explicit resource bundles only)
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
define create-hk-java-file
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
@$(prep-target)
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
$(CAT) $< | $(SED) -e '/class/s/_zh_TW/_zh_HK/' > $@
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
endef
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
# Explicit resource bundles
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
$(GENSRCDIR)/%_zh_HK.java: $(PLATFORM_SRC)/classes/%_zh_TW.java
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
	$(create-hk-java-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
$(GENSRCDIR)/%_zh_HK.java: $(SHARE_SRC)/classes/%_zh_TW.java
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
	$(create-hk-java-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
# Compile of zh_HK properties just uses the zh_TW properties files
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
$(GENSRCDIR)/%_zh_HK.java: $(PLATFORM_SRC)/classes/%_zh_TW.properties
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
	$(add-property-java-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
$(GENSRCDIR)/%_zh_HK.java: $(SHARE_SRC)/classes/%_zh_TW.properties
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
	$(add-property-java-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
02bb8761fcce Initial load
duke
parents:
diff changeset
   201
# Simple delivery of zh_HK properties files just copies zh_TW properties files
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
$(CLASSDESTDIR)/%_zh_HK.properties: \
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
             $(PLATFORM_SRC)/classes/%_zh_TW.properties
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
	$(install-properties-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
$(CLASSDESTDIR)/%_zh_HK.properties: \
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
             $(SHARE_SRC)/classes/%_zh_TW.properties
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
	$(install-properties-file)
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
# List of java files converted from properties files needed
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
COMPILE_PROP_JAVA_FILES = $(COMPILED_PROPERTIES:%.properties=$(GENSRCDIR)/%.java)
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
# Make sure the build rule creates all the properties
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
resources:
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
ifneq ($(PROPERTIES_FILES),)
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
  resources: strip_prop_options_clean   strip_all_props
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
  clobber clean:: 
02bb8761fcce Initial load
duke
parents:
diff changeset
   218
	$(RM) $(STRIP_PROP_FILES)
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
	$(RM) $(STRIP_PROP_options)
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
endif
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
.PHONY: resources \
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
	strip_prop_options_clean   strip_all_props
02bb8761fcce Initial load
duke
parents:
diff changeset
   224