Makefile revision 3909
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann#
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann#
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# This code is free software; you can redistribute it and/or modify it
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# under the terms of the GNU General Public License version 2 only, as
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# published by the Free Software Foundation. Oracle designates this
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# particular file as subject to the "Classpath" exception as provided
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# by Oracle in the LICENSE file that accompanied this code.
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann#
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# This code is distributed in the hope that it will be useful, but WITHOUT
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# version 2 for more details (a copy is included in the LICENSE file that
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# accompanied this code).
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann#
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# You should have received a copy of the GNU General Public License version
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# 2 along with this work; if not, write to the Free Software Foundation,
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann#
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# or visit www.oracle.com if you need additional information or have any
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# questions.
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann#
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann#
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann# Makefile for the nio/file sample code
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann#
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannBUILDDIR = ../../..
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannPRODUCT = java
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmanninclude $(BUILDDIR)/common/Defs.gmk
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannSAMPLE_SRC_DIR = $(SHARE_SRC)/sample/nio/file
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannSAMPLE_DST_DIR = $(SAMPLEDIR)/nio/file
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann
06255d6f76f3f630a9634d745a48910b1ea3e4d3David HerrmannSAMPLE_FILES = \
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann $(SAMPLE_DST_DIR)/AclEdit.java \
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann $(SAMPLE_DST_DIR)/Chmod.java \
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann $(SAMPLE_DST_DIR)/Copy.java \
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann $(SAMPLE_DST_DIR)/DiskUsage.java \
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann $(SAMPLE_DST_DIR)/FileType.java \
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann $(SAMPLE_DST_DIR)/WatchDir.java \
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann $(SAMPLE_DST_DIR)/Xdd.java
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmannall build: $(SAMPLE_FILES)
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann$(SAMPLE_DST_DIR)/%: $(SAMPLE_SRC_DIR)/%
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann $(install-file)
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmannclean clobber:
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann $(RM) -r $(SAMPLE_DST_DIR)
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann.PHONY: all build clean clobber
06255d6f76f3f630a9634d745a48910b1ea3e4d3David Herrmann