Makefile revision 893
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Copyright 2008-2009 Sun Microsystems, Inc. All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# This code is free software; you can redistribute it and/or modify it
45e9809aff7304721fddb95654901b32195c9c7avboxsync# under the terms of the GNU General Public License version 2 only, as
45e9809aff7304721fddb95654901b32195c9c7avboxsync# published by the Free Software Foundation. Sun designates this
45e9809aff7304721fddb95654901b32195c9c7avboxsync# particular file as subject to the "Classpath" exception as provided
45e9809aff7304721fddb95654901b32195c9c7avboxsync# by Sun in the LICENSE file that accompanied this code.
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# This code is distributed in the hope that it will be useful, but WITHOUT
45e9809aff7304721fddb95654901b32195c9c7avboxsync# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
45e9809aff7304721fddb95654901b32195c9c7avboxsync# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
45e9809aff7304721fddb95654901b32195c9c7avboxsync# version 2 for more details (a copy is included in the LICENSE file that
45e9809aff7304721fddb95654901b32195c9c7avboxsync# accompanied this code).
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# You should have received a copy of the GNU General Public License version
45e9809aff7304721fddb95654901b32195c9c7avboxsync# 2 along with this work; if not, write to the Free Software Foundation,
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
45e9809aff7304721fddb95654901b32195c9c7avboxsync# CA 95054 USA or visit www.sun.com if you need additional information or
45e9809aff7304721fddb95654901b32195c9c7avboxsync# have any questions.
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync# Makefile for the nio/file sample code
45e9809aff7304721fddb95654901b32195c9c7avboxsync#
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBUILDDIR = ../../..
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncPRODUCT = java
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncinclude $(BUILDDIR)/common/Defs.gmk
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncSAMPLE_SRC_DIR = $(SHARE_SRC)/sample/nio/file
45e9809aff7304721fddb95654901b32195c9c7avboxsyncSAMPLE_DST_DIR = $(SAMPLEDIR)/nio/file
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncSAMPLE_FILES = \
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(SAMPLE_DST_DIR)/AclEdit.java \
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(SAMPLE_DST_DIR)/Chmod.java \
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(SAMPLE_DST_DIR)/Copy.java \
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(SAMPLE_DST_DIR)/DiskUsage.java \
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(SAMPLE_DST_DIR)/FileType.java \
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(SAMPLE_DST_DIR)/WatchDir.java \
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(SAMPLE_DST_DIR)/Xdd.java
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncall build: $(SAMPLE_FILES)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync$(SAMPLE_DST_DIR)/%: $(SAMPLE_SRC_DIR)/%
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(install-file)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncclean clobber:
45e9809aff7304721fddb95654901b32195c9c7avboxsync $(RM) -r $(SAMPLE_DST_DIR)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync.PHONY: all build clean clobber
45e9809aff7304721fddb95654901b32195c9c7avboxsync