xref: /titanic_52/usr/src/pkg/Makefile.lic (revision c0e7977a434048a8bc7386ea0e8befaa77a646cf)
15084e753SMark J. Nelson#
25084e753SMark J. Nelson# CDDL HEADER START
35084e753SMark J. Nelson#
45084e753SMark J. Nelson# The contents of this file are subject to the terms of the
55084e753SMark J. Nelson# Common Development and Distribution License (the "License").
65084e753SMark J. Nelson# You may not use this file except in compliance with the License.
75084e753SMark J. Nelson#
85084e753SMark J. Nelson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95084e753SMark J. Nelson# or http://www.opensolaris.org/os/licensing.
105084e753SMark J. Nelson# See the License for the specific language governing permissions
115084e753SMark J. Nelson# and limitations under the License.
125084e753SMark J. Nelson#
135084e753SMark J. Nelson# When distributing Covered Code, include this CDDL HEADER in each
145084e753SMark J. Nelson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155084e753SMark J. Nelson# If applicable, add the following below this CDDL HEADER, with the
165084e753SMark J. Nelson# fields enclosed by brackets "[]" replaced with your own identifying
175084e753SMark J. Nelson# information: Portions Copyright [yyyy] [name of copyright owner]
185084e753SMark J. Nelson#
195084e753SMark J. Nelson# CDDL HEADER END
205084e753SMark J. Nelson#
215084e753SMark J. Nelson
225084e753SMark J. Nelson#
235084e753SMark J. Nelson# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
245084e753SMark J. Nelson#
255084e753SMark J. Nelson
265084e753SMark J. Nelson#
275084e753SMark J. Nelson# PKGDEBUG and LICROOT should be defined on the command line or in
285084e753SMark J. Nelson# the environment when using this Makefile, as they generally come
295084e753SMark J. Nelson# from usr/src/pkg/Makefile.  The remaining env vars should already
305084e753SMark J. Nelson# be part of a working build environment.
315084e753SMark J. Nelson#
325084e753SMark J. Nelson
335084e753SMark J. Nelsoninclude $(SRC)/Makefile.master
345084e753SMark J. Nelson
355084e753SMark J. Nelson#
365084e753SMark J. Nelson# For license files in the open source tree, always copy them from src
375084e753SMark J. Nelson# into the license staging directory in the proto area
385084e753SMark J. Nelson#
395084e753SMark J. Nelson$(LICROOT)/usr/src/%: $(CODEMGR_WS)/usr/src/%
405084e753SMark J. Nelson	$(PKGDEBUG)if [ ! -d $(@D) ]; then mkdir -p $(@D); fi
415084e753SMark J. Nelson	$(PKGDEBUG)$(INS.file)
425084e753SMark J. Nelson
435084e753SMark J. Nelson#
44*c0e7977aSJosef 'Jeff' Sipek# A build without closed source relies on closed-bins extraction to stage
45*c0e7977aSJosef 'Jeff' Sipek# the license file and does nothing here.
465084e753SMark J. Nelson#
47*c0e7977aSJosef 'Jeff' Sipek$(LICROOT)/usr/closed/%:
485084e753SMark J. Nelson	if [ ! -d $(@D) ]; then \
495084e753SMark J. Nelson		mkdir -p $(@D); \
505084e753SMark J. Nelson	fi; \
51