make/nashorn-rules.gmk

Sat, 02 Mar 2013 10:28:16 -0400

author
jlaskey
date
Sat, 02 Mar 2013 10:28:16 -0400
changeset 885
13ddc5c3ebfc
parent 880
8b19b55f695d
parent 646
e065107437b9
permissions
-rw-r--r--

Merge

alanb@646 1 #
alanb@646 2 # Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
alanb@646 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
alanb@646 4 #
alanb@646 5 # This code is free software; you can redistribute it and/or modify it
alanb@646 6 # under the terms of the GNU General Public License version 2 only, as
alanb@646 7 # published by the Free Software Foundation. Oracle designates this
alanb@646 8 # particular file as subject to the "Classpath" exception as provided
alanb@646 9 # by Oracle in the LICENSE file that accompanied this code.
alanb@646 10 #
alanb@646 11 # This code is distributed in the hope that it will be useful, but WITHOUT
alanb@646 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
alanb@646 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
alanb@646 14 # version 2 for more details (a copy is included in the LICENSE file that
alanb@646 15 # accompanied this code).
alanb@646 16 #
alanb@646 17 # You should have received a copy of the GNU General Public License version
alanb@646 18 # 2 along with this work; if not, write to the Free Software Foundation,
alanb@646 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
alanb@646 20 #
alanb@646 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
alanb@646 22 # or visit www.oracle.com if you need additional information or have any
alanb@646 23 # questions.
alanb@646 24 #
alanb@646 25
alanb@646 26 ################################################################
alanb@646 27 # NASHORN TARGETS
alanb@646 28 ################################################################
alanb@646 29
alanb@646 30 NASHORN_BUILD_ARGUMENTS = \
alanb@646 31 $(COMMON_BUILD_ARGUMENTS) \
alanb@646 32 ALT_OUTPUTDIR=$(NASHORN_OUTPUTDIR) \
alanb@646 33 ALT_BOOTDIR=$(BOOTDIR) \
alanb@646 34 ALT_JDK_IMPORT_PATH=$(JDK_IMPORT_PATH)
alanb@646 35
alanb@646 36 ifeq ($(BUILD_LANGTOOLS), true)
alanb@646 37 NASHORN_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
alanb@646 38 endif
alanb@646 39
alanb@646 40 # Default targets
alanb@646 41 NASHORN = nashorn-build
alanb@646 42
alanb@646 43 nashorn: nashorn-build
alanb@646 44 nashorn-build:
alanb@646 45 $(MKDIR) -p $(NASHORN_OUTPUTDIR)
alanb@646 46 @$(call MakeStart,nashorn,all)
alanb@646 47 ($(CD) $(NASHORN_TOPDIR)/make && \
alanb@646 48 $(MAKE) $(NASHORN_BUILD_ARGUMENTS) all)
alanb@646 49 @$(call MakeFinish,nashorn,all)
alanb@646 50
alanb@646 51 nashorn-clobber::
alanb@646 52 $(MKDIR) -p $(NASHORN_OUTPUTDIR)
alanb@646 53 @$(call MakeStart,nashorn,clobber)
alanb@646 54 ($(CD) $(NASHORN_TOPDIR)/make && \
alanb@646 55 $(MAKE) $(NASHORN_BUILD_ARGUMENTS) clobber)
alanb@646 56 @$(call MakeFinish,nashorn,clobber)
alanb@646 57
alanb@646 58 .PHONY: nashorn nashorn-build nashorn-clobber
alanb@646 59

mercurial