alanb@646: # alanb@646: # Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. alanb@646: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. alanb@646: # alanb@646: # This code is free software; you can redistribute it and/or modify it alanb@646: # under the terms of the GNU General Public License version 2 only, as alanb@646: # published by the Free Software Foundation. Oracle designates this alanb@646: # particular file as subject to the "Classpath" exception as provided alanb@646: # by Oracle in the LICENSE file that accompanied this code. alanb@646: # alanb@646: # This code is distributed in the hope that it will be useful, but WITHOUT alanb@646: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or alanb@646: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License alanb@646: # version 2 for more details (a copy is included in the LICENSE file that alanb@646: # accompanied this code). alanb@646: # alanb@646: # You should have received a copy of the GNU General Public License version alanb@646: # 2 along with this work; if not, write to the Free Software Foundation, alanb@646: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. alanb@646: # alanb@646: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA alanb@646: # or visit www.oracle.com if you need additional information or have any alanb@646: # questions. alanb@646: # alanb@646: alanb@646: ################################################################ alanb@646: # NASHORN TARGETS alanb@646: ################################################################ alanb@646: alanb@646: NASHORN_BUILD_ARGUMENTS = \ alanb@646: $(COMMON_BUILD_ARGUMENTS) \ alanb@646: ALT_OUTPUTDIR=$(NASHORN_OUTPUTDIR) \ alanb@646: ALT_BOOTDIR=$(BOOTDIR) \ alanb@646: ALT_JDK_IMPORT_PATH=$(JDK_IMPORT_PATH) alanb@646: alanb@646: ifeq ($(BUILD_LANGTOOLS), true) alanb@646: NASHORN_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST) alanb@646: endif alanb@646: alanb@646: # Default targets alanb@646: NASHORN = nashorn-build alanb@646: alanb@646: nashorn: nashorn-build alanb@646: nashorn-build: alanb@646: $(MKDIR) -p $(NASHORN_OUTPUTDIR) alanb@646: @$(call MakeStart,nashorn,all) alanb@646: ($(CD) $(NASHORN_TOPDIR)/make && \ alanb@646: $(MAKE) $(NASHORN_BUILD_ARGUMENTS) all) alanb@646: @$(call MakeFinish,nashorn,all) alanb@646: alanb@646: nashorn-clobber:: alanb@646: $(MKDIR) -p $(NASHORN_OUTPUTDIR) alanb@646: @$(call MakeStart,nashorn,clobber) alanb@646: ($(CD) $(NASHORN_TOPDIR)/make && \ alanb@646: $(MAKE) $(NASHORN_BUILD_ARGUMENTS) clobber) alanb@646: @$(call MakeFinish,nashorn,clobber) alanb@646: alanb@646: .PHONY: nashorn nashorn-build nashorn-clobber alanb@646: