make/nashorn-rules.gmk

Mon, 28 Jan 2013 16:29:34 -0400

author
jlaskey
date
Mon, 28 Jan 2013 16:29:34 -0400
changeset 877
3dc55f0c1b6f
child 880
8b19b55f695d
permissions
-rw-r--r--

8006676: Integrate Nashorn into new build system
Reviewed-by: jlaskey
Contributed-by: james.laskey@oracle.com

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

mercurial