1 # |
1 # |
2 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
34 |
34 |
35 # JPRT will define these when it builds |
35 # JPRT will define these when it builds |
36 JPRT_ARCHIVE_BUNDLE=$(ABS_OUTPUTDIR)/$(DEFAULT_BUILD_FLAVOR)-bundle.zip |
36 JPRT_ARCHIVE_BUNDLE=$(ABS_OUTPUTDIR)/$(DEFAULT_BUILD_FLAVOR)-bundle.zip |
37 JPRT_ARCHIVE_INSTALL_BUNDLE=$(ABS_OUTPUTDIR)/$(DEFAULT_BUILD_FLAVOR)-install-bundle.zip |
37 JPRT_ARCHIVE_INSTALL_BUNDLE=$(ABS_OUTPUTDIR)/$(DEFAULT_BUILD_FLAVOR)-install-bundle.zip |
38 |
38 |
|
39 ifeq ($(PLATFORM),windows) |
|
40 ZIPFLAGS=-q |
|
41 else |
|
42 # store symbolic links as the link |
|
43 ZIPFLAGS=-q -y |
|
44 endif |
|
45 |
39 jprt_build_product: sanity all_product_build |
46 jprt_build_product: sanity all_product_build |
40 ( $(CD) $(OUTPUTDIR)/$(JDK_IMAGE_DIRNAME) && \ |
47 ( $(CD) $(OUTPUTDIR)/$(JDK_IMAGE_DIRNAME) && \ |
41 $(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . ) |
48 $(ZIPEXE) $(ZIPFLAGS) -r $(JPRT_ARCHIVE_BUNDLE) . ) |
42 ifdef HAVE_JPRT_SAVE_BUNDLES |
49 ifdef HAVE_JPRT_SAVE_BUNDLES |
43 ( $(CD) $(OUTPUTDIR)/bundles && \ |
50 ( $(CD) $(OUTPUTDIR)/bundles && \ |
44 $(ZIPEXE) -q -r $(JPRT_ARCHIVE_INSTALL_BUNDLE) . ) |
51 $(ZIPEXE) $(ZIPFLAGS) -r $(JPRT_ARCHIVE_INSTALL_BUNDLE) . ) |
45 endif |
52 endif |
46 |
53 |
47 jprt_build_fastdebug: fastdebug_build |
54 jprt_build_fastdebug: fastdebug_build |
48 ( $(CD) $(OUTPUTDIR)/$(REL_JDK_FASTDEBUG_IMAGE_DIR) && \ |
55 ( $(CD) $(OUTPUTDIR)/$(REL_JDK_FASTDEBUG_IMAGE_DIR) && \ |
49 $(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . ) |
56 $(ZIPEXE) $(ZIPFLAGS) -r $(JPRT_ARCHIVE_BUNDLE) . ) |
50 |
57 |
51 jprt_build_debug: debug_build |
58 jprt_build_debug: debug_build |
52 ( $(CD) $(OUTPUTDIR)/$(REL_JDK_DEBUG_IMAGE_DIR) && \ |
59 ( $(CD) $(OUTPUTDIR)/$(REL_JDK_DEBUG_IMAGE_DIR) && \ |
53 $(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . ) |
60 $(ZIPEXE) $(ZIPFLAGS) -r $(JPRT_ARCHIVE_BUNDLE) . ) |
54 |
61 |
55 ################################################################ |
62 ################################################################ |
56 # PHONY |
63 # PHONY |
57 ################################################################ |
64 ################################################################ |
58 |
65 |