1 # Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. 2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # 4 # This code is free software; you can redistribute it and/or modify it 5 # under the terms of the GNU General Public License version 2 only, as 6 # published by the Free Software Foundation. Oracle designates this 7 # particular file as subject to the "Classpath" exception as provided 8 # by Oracle in the LICENSE file that accompanied this code. 9 # 10 # This code is distributed in the hope that it will be useful, but WITHOUT 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 # version 2 for more details (a copy is included in the LICENSE file that 14 # accompanied this code). 15 # 16 # You should have received a copy of the GNU General Public License version 17 # 2 along with this work; if not, write to the Free Software Foundation, 18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 # 20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21 # or visit www.oracle.com if you need additional information or have any 22 # questions. 23 24 BUILDDIR = ../../.. 25 PACKAGE = com.sun.servicetag 26 PRODUCT = sun 27 include $(BUILDDIR)/common/Defs.gmk 28 29 # 30 # Files to compile 31 # 32 AUTO_FILES_JAVA_DIRS = com/sun/servicetag 33 34 # 35 # Rules 36 # 37 include $(BUILDDIR)/common/Classes.gmk 38 39 SERVICETAG_LIBDIR = $(LIBDIR)/servicetag 40 SERVICETAG_RESOURCES_DIR = $(CLASSDESTDIR)/com/sun/servicetag/resources 41 FILES_copy = $(SERVICETAG_RESOURCES_DIR)/product_registration.xsd \ 42 $(SERVICETAG_RESOURCES_DIR)/register.html \ 43 $(SERVICETAG_RESOURCES_DIR)/register_ja.html \ 44 $(SERVICETAG_RESOURCES_DIR)/register_zh_CN.html \ 45 $(SERVICETAG_LIBDIR)/jdk_header.png 46 47 # Add all properties files to the FILES_copy list 48 SWORDFISH_properties := $(shell \ 49 $(CD) $(SHARE_SRC)/classes/com/sun/servicetag/resources; \ 50 $(FIND) . -name 'javase_*.properties' -print ; \ 51 ) 52 FILES_copy += $(shell \ 53 for f in $(SWORDFISH_properties) ; do \ 54 echo $(SERVICETAG_RESOURCES_DIR)/$$f ; \ 55 done \ 56 ) 57 58 59 # 60 #OTHER_JAVACFLAGS += -Xlint:unchecked 61 62 build: install-servicetag-lib copy-files 63 64 copy-files: $(FILES_copy) 65 66 $(CLASSBINDIR)/%: $(SHARE_SRC)/classes/% 67 $(install-file) 68 69 $(SERVICETAG_LIBDIR)/jdk_header.png: $(SHARE_SRC)/classes/com/sun/servicetag/resources/jdk_header.png 70 $(install-file) 71 $(call chmod-file, 444) 72 73 install-servicetag-lib: 74 @$(RM) -rf $(SERVICETAG_LIBDIR) 75 $(MKDIR) $(SERVICETAG_LIBDIR) 76 77 clean clobber:: 78 @$(RM) $(FILES_copy) 79 80 .PHONY: copy-files