Tue, 09 Oct 2012 20:14:36 +0100
7196086: update copyright years for files in corba repository (JDK 8)
Reviewed-by: lancea
duke@1 | 1 | # |
ohair@158 | 2 | # Copyright (c) 1995, 2005, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | # |
duke@1 | 5 | # This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | # under the terms of the GNU General Public License version 2 only, as |
ohair@158 | 7 | # published by the Free Software Foundation. Oracle designates this |
duke@1 | 8 | # particular file as subject to the "Classpath" exception as provided |
ohair@158 | 9 | # by Oracle in the LICENSE file that accompanied this code. |
duke@1 | 10 | # |
duke@1 | 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | # version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | # accompanied this code). |
duke@1 | 16 | # |
duke@1 | 17 | # You should have received a copy of the GNU General Public License version |
duke@1 | 18 | # 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | # |
ohair@158 | 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@158 | 22 | # or visit www.oracle.com if you need additional information or have any |
ohair@158 | 23 | # questions. |
duke@1 | 24 | # |
duke@1 | 25 | |
duke@1 | 26 | include $(BUILDDIR)/common/Rules.gmk |
duke@1 | 27 | |
duke@1 | 28 | # |
duke@1 | 29 | # Say you built classes into $(ALT_CLASSBINDIR) and then at the end of |
duke@1 | 30 | # the build you might want to copy them over to $(ALT_CLASSDESTDIR); |
duke@1 | 31 | # this rule takes care of that. No one should really set these |
duke@1 | 32 | # variables except the bootstrap/recompile stage of the java compiler. |
duke@1 | 33 | # |
duke@1 | 34 | ifdef ALT_CLASSBINDIR |
duke@1 | 35 | |
duke@1 | 36 | # By default post-processing is copying. Suppose you want to build |
duke@1 | 37 | # a jar file then set ALT_CLASSES_DISPOSITION to '../../dest/nameof.jar' |
duke@1 | 38 | # before including this file. |
duke@1 | 39 | ifndef ALT_CLASSES_DISPOSITION |
duke@1 | 40 | ALT_CLASSES_DISPOSITION = copy-classes |
duke@1 | 41 | endif |
duke@1 | 42 | |
duke@1 | 43 | build : $(ALT_CLASSES_DISPOSITION) |
duke@1 | 44 | |
duke@1 | 45 | copy-classes: |
duke@1 | 46 | ifneq ($(ALT_CLASSBINDIR), $(ALT_CLASSDESTDIR)) |
duke@1 | 47 | @if [ -s $(TEMPDIR)/.classes.list ]; then \ |
duke@1 | 48 | $(MKDIR) -p $(ALT_CLASSDESTDIR); \ |
duke@1 | 49 | $(ECHO) "Copying $(ALT_CLASSBINDIR)..."; \ |
duke@1 | 50 | $(ECHO) "($(CD) $(ALT_CLASSBINDIR); $(TAR) cf - .) | \ |
duke@1 | 51 | ($(CD) $(ALT_CLASSDESTDIR); $(TAR) xf -)"; \ |
duke@1 | 52 | ($(CD) $(ALT_CLASSBINDIR); $(TAR) cf - .) | \ |
duke@1 | 53 | ($(CD) $(ALT_CLASSDESTDIR); $(TAR) xf -); \ |
duke@1 | 54 | fi |
duke@1 | 55 | else # ALT_CLASSBINDIR |
duke@1 | 56 | @if [ -s $(TEMPDIR)/.classes.list ]; then \ |
duke@1 | 57 | $(ECHO) "Copy source and destination are the same: $(ALT_CLASSBINDIR) -- Copy skipped..."; \ |
duke@1 | 58 | fi |
duke@1 | 59 | endif # ALT_CLASSBINDIR |
duke@1 | 60 | |
duke@1 | 61 | .PHONY: copy-classes |
duke@1 | 62 | endif # ALT_CLASSBINDIR |
duke@1 | 63 |