make/Makefile

Thu, 21 Feb 2013 15:24:31 -0400

author
jlaskey
date
Thu, 21 Feb 2013 15:24:31 -0400
changeset 109
ae1c9716685b
parent 103
b6798a83dbd4
child 676
779e155419b8
permissions
-rw-r--r--

8008447: Tweaks to make all NEWBUILD=false round 3
Reviewed-by: jjh, sundar
Contributed-by: james.laskey@oracle.com

jlaskey@3 1 #
jlaskey@7 2 # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
jlaskey@3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jlaskey@3 4 #
jlaskey@3 5 # This code is free software; you can redistribute it and/or modify it
jlaskey@3 6 # under the terms of the GNU General Public License version 2 only, as
jlaskey@3 7 # published by the Free Software Foundation. Oracle designates this
jlaskey@3 8 # particular file as subject to the "Classpath" exception as provided
jlaskey@3 9 # by Oracle in the LICENSE file that accompanied this code.
jlaskey@3 10 #
jlaskey@3 11 # This code is distributed in the hope that it will be useful, but WITHOUT
jlaskey@3 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jlaskey@3 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jlaskey@3 14 # version 2 for more details (a copy is included in the LICENSE file that
jlaskey@3 15 # accompanied this code).
jlaskey@3 16 #
jlaskey@3 17 # You should have received a copy of the GNU General Public License version
jlaskey@3 18 # 2 along with this work; if not, write to the Free Software Foundation,
jlaskey@3 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jlaskey@3 20 #
jlaskey@3 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jlaskey@3 22 # or visit www.oracle.com if you need additional information or have any
jlaskey@3 23 # questions.
jlaskey@3 24 #
jlaskey@3 25
jlaskey@3 26 #
jlaskey@3 27 # On Solaris, the standard 'make' utility will not work with these makefiles.
jlaskey@3 28 # This little rule is only understood by Solaris make, and is harmless
jlaskey@3 29 # when seen by the GNU make tool. If using Solaris make, this causes the
jlaskey@3 30 # make command to fail.
jlaskey@3 31 #
jlaskey@3 32 SUN_MAKE_TEST:sh = @echo "ERROR: PLEASE USE GNU VERSION OF MAKE"; exit 33
jlaskey@3 33
jlaskey@3 34
jlaskey@3 35 # Default target and expected 'do everything' target
jlaskey@109 36 all:
jlaskey@109 37 echo Nashorn can only be built with NEWBUILD=true
jlaskey@3 38
jlaskey@3 39 # Standard make clobber target
jlaskey@109 40 clobber:
jlaskey@3 41
jlaskey@3 42 #-------------------------------------------------------------------
jlaskey@3 43 #
jlaskey@3 44 # Targets for Oracle's internal JPRT build system
jlaskey@3 45
jlaskey@3 46 CD = cd
jlaskey@3 47 ZIP = zip
jlaskey@3 48
jlaskey@3 49 JPRT_ARCHIVE_BUNDLE=$(ABS_OUTPUTDIR)/$(JPRT_BUILD_FLAVOR)-bundle.zip
jlaskey@3 50
jlaskey@3 51 jprt_build_product jprt_build_debug jprt_build_fastdebug: all
jlaskey@3 52 ( $(CD) $(OUTPUTDIR) && \
jlaskey@3 53 $(ZIP) -q -r $(JPRT_ARCHIVE_BUNDLE) build dist )
jlaskey@3 54
jlaskey@3 55 #-------------------------------------------------------------------
jlaskey@3 56
jlaskey@3 57 # Declare these phony (not filenames)
jlaskey@3 58 .PHONY: $(ANT_TARGETS) all clobber \
jlaskey@3 59 jprt_build_product jprt_build_debug jprt_build_fastdebug

mercurial