Makefile revision 3909
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# This code is free software; you can redistribute it and/or modify it
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# under the terms of the GNU General Public License version 2 only, as
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# published by the Free Software Foundation. Oracle designates this
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# particular file as subject to the "Classpath" exception as provided
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# by Oracle in the LICENSE file that accompanied this code.
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# This code is distributed in the hope that it will be useful, but WITHOUT
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews# version 2 for more details (a copy is included in the LICENSE file that
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# accompanied this code).
f8f37672a57524560fbdde52484e6ae3de1c3354Mark Andrews#
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# You should have received a copy of the GNU General Public License version
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews# 2 along with this work; if not, write to the Free Software Foundation,
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews#
0756445a735e2df39bf798d8de42ae5dd030aa3bMark Andrews# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
a02a0a8a7eb461619931f4a0e896afa247b52c54Mark Andrews# or visit www.oracle.com if you need additional information or have any
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# questions.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Makefile for building all the demos
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark AndrewsBUILDDIR = ..
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsPRODUCT = demos
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrewsinclude $(BUILDDIR)/common/Defs.gmk
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsSUBDIRS = jni nio
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark AndrewsSUBDIRS_desktop = applets jfc
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsSUBDIRS_management = management
4038ab55037184d76153afd3c469aa8c85adf85dMark AndrewsSUBDIRS_misc = scripting
068a66979695c77359e7a9181bb3f831c965b21cMark AndrewsSUBDIRS_tools = jpda jvmti
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
bac2ed6ec3fbb5420e6ce69dd1218745d4e02b1eMark Andrewsinclude $(BUILDDIR)/common/Subdirs.gmk
a0624cf8d5711cca4e3907859fbc8062a7e460faMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsall build:: nbproject
a0624cf8d5711cca4e3907859fbc8062a7e460faMark Andrews $(SUBDIRS-loop)
a0624cf8d5711cca4e3907859fbc8062a7e460faMark Andrews
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsnbproject:
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(RM) -r $(DEMODIR)/nbproject
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews $(MKDIR) -p $(DEMODIR)
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews ( $(CD) $(SHARE_SRC)/demo && $(TAR) -cf - \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson `$(FIND) nbproject $(SCM_DIRS_prune) -o -type f -print` ) | \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews ( $(CD) $(DEMODIR) && $(TAR) -xf - )
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsifndef OPENJDK
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ( $(CD) $(CLOSED_SHARE_SRC)/demo && $(TAR) -cf - \
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrews `$(FIND) nbproject $(SCM_DIRS_prune) -o -type f -print` ) | \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington ( $(CD) $(DEMODIR) && $(TAR) -xf - )
75216e007570b8ea36b3ac9cca096bf70c0ca6f6Mark Andrewsendif
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrewsclean clobber::
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(SUBDIRS-loop)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(RM) -r $(DEMODIR)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews $(RM) -r $(DEMOCLASSDIR)
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews
068a66979695c77359e7a9181bb3f831c965b21cMark Andrews