6641585: jdk/make/javax/Makefile should not have both SUBDIRS and AUTO_FILES_JAVA_DIRS
Separated Makefile logic, subtree walk vs. javac compiles. Also fixed minor issue in Rules.gmk. Reviewed-by: tbell
This commit is contained in:
parent
a2db9ffac0
commit
0e9c8616cc
@ -231,12 +231,14 @@ classes : $(CLASSES_INIT) .delete.classlist .compile.classlist
|
|||||||
|
|
||||||
.compile.classlist : $(JAVA_SOURCE_LIST)
|
.compile.classlist : $(JAVA_SOURCE_LIST)
|
||||||
@$(MKDIR) -p $(CLASSDESTDIR)
|
@$(MKDIR) -p $(CLASSDESTDIR)
|
||||||
@if [ `$(CAT) $(JAVA_SOURCE_LIST) | $(WC) -l` -ge 1 ] ; then \
|
@$(RM) $<.filtered
|
||||||
$(ECHO) "# Java sources to be compiled: (listed in file $(JAVA_SOURCE_LIST))"; \
|
@$(CAT) $< | $(NAWK) 'length>0' | $(SORT) -u > $<.filtered
|
||||||
$(CAT) $(JAVA_SOURCE_LIST); \
|
@if [ `$(CAT) $<.filtered | $(WC) -l` -ge 1 ] ; then \
|
||||||
|
$(ECHO) "# Java sources to be compiled: (listed in file $<)"; \
|
||||||
|
$(CAT) $<.filtered; \
|
||||||
$(ECHO) "# Running javac:"; \
|
$(ECHO) "# Running javac:"; \
|
||||||
$(ECHO) $(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$(JAVA_SOURCE_LIST); \
|
$(ECHO) $(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$<.filtered; \
|
||||||
$(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$(JAVA_SOURCE_LIST); \
|
$(JAVAC_CMD) -sourcepath "$(SOURCEPATH)" -d $(CLASSDESTDIR) @$<.filtered; \
|
||||||
fi
|
fi
|
||||||
@$(java-vm-cleanup)
|
@$(java-vm-cleanup)
|
||||||
|
|
||||||
|
@ -30,24 +30,10 @@
|
|||||||
BUILDDIR = ..
|
BUILDDIR = ..
|
||||||
include $(BUILDDIR)/common/Defs.gmk
|
include $(BUILDDIR)/common/Defs.gmk
|
||||||
|
|
||||||
#
|
|
||||||
# Files to compile
|
|
||||||
#
|
|
||||||
AUTO_FILES_JAVA_DIRS = \
|
|
||||||
javax/naming \
|
|
||||||
com/sun/naming/internal \
|
|
||||||
javax/net \
|
|
||||||
javax/script \
|
|
||||||
javax/security/auth \
|
|
||||||
javax/security/cert \
|
|
||||||
javax/security/sasl \
|
|
||||||
javax/smartcardio \
|
|
||||||
javax/tools \
|
|
||||||
javax/xml
|
|
||||||
|
|
||||||
# imageio uses xml, so build it last
|
# imageio uses xml, so build it last
|
||||||
|
|
||||||
SUBDIRS = \
|
SUBDIRS = \
|
||||||
|
others \
|
||||||
accessibility \
|
accessibility \
|
||||||
print \
|
print \
|
||||||
swing \
|
swing \
|
||||||
@ -63,8 +49,3 @@ all build:
|
|||||||
clean clobber::
|
clean clobber::
|
||||||
$(SUBDIRS-loop)
|
$(SUBDIRS-loop)
|
||||||
|
|
||||||
#
|
|
||||||
# Rules
|
|
||||||
#
|
|
||||||
include $(BUILDDIR)/common/Classes.gmk
|
|
||||||
|
|
||||||
|
52
jdk/make/javax/others/Makefile
Normal file
52
jdk/make/javax/others/Makefile
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
#
|
||||||
|
# Copyright 1998-2007 Sun Microsystems, Inc. All Rights Reserved.
|
||||||
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
|
#
|
||||||
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License version 2 only, as
|
||||||
|
# published by the Free Software Foundation. Sun designates this
|
||||||
|
# particular file as subject to the "Classpath" exception as provided
|
||||||
|
# by Sun in the LICENSE file that accompanied this code.
|
||||||
|
#
|
||||||
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
# version 2 for more details (a copy is included in the LICENSE file that
|
||||||
|
# accompanied this code).
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License version
|
||||||
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
||||||
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
#
|
||||||
|
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
||||||
|
# CA 95054 USA or visit www.sun.com if you need additional information or
|
||||||
|
# have any questions.
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Makefile for building javax (other classes)
|
||||||
|
#
|
||||||
|
|
||||||
|
BUILDDIR = ../..
|
||||||
|
include $(BUILDDIR)/common/Defs.gmk
|
||||||
|
|
||||||
|
#
|
||||||
|
# Files to compile
|
||||||
|
#
|
||||||
|
AUTO_FILES_JAVA_DIRS = \
|
||||||
|
javax/naming \
|
||||||
|
com/sun/naming/internal \
|
||||||
|
javax/net \
|
||||||
|
javax/script \
|
||||||
|
javax/security/auth \
|
||||||
|
javax/security/cert \
|
||||||
|
javax/security/sasl \
|
||||||
|
javax/smartcardio \
|
||||||
|
javax/tools \
|
||||||
|
javax/xml
|
||||||
|
|
||||||
|
#
|
||||||
|
# Rules
|
||||||
|
#
|
||||||
|
include $(BUILDDIR)/common/Classes.gmk
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user