Makefile revision 1046
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff###############################################################################
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# Makefile for X Consolidation packages
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# Permission is hereby granted, free of charge, to any person obtaining a
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# copy of this software and associated documentation files (the "Software"),
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# to deal in the Software without restriction, including without limitation
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# the rights to use, copy, modify, merge, publish, distribute, sublicense,
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# and/or sell copies of the Software, and to permit persons to whom the
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# Software is furnished to do so, subject to the following conditions:
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# The above copyright notice and this permission notice (including the next
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# paragraph) shall be included in all copies or substantial portions of the
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# DEALINGS IN THE SOFTWARE.
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff###############################################################################
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# Heavily inspired by / borrowed from the ON usr/src/pkg/Makefile
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# Please read the comments in it and the accompanying README in ON for many
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# details omitted here.
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# Major differences in the X implementation:
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# - X only supports building one repo, not redist + extra
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# - X only supports building packages on the same platform as the binaries,
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# no cross-platform packaging
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# - X has no bfu legacy to deal with
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# - ON has all manifests in one directory, X splits into current & legacy
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff# - Integrates with X consolidation makefile/build system instead of ON's
eaee839afff6e24a5ba7277c5fdacd4eeba4253bJeff Conniff### Include common definitions
PKGDEBUG_V_0 = @
SUPPRESSPKGDEP= false
$(PDIR):
mkdir -p $@
PKGLISTS= \
# Base URL for ARC cases used in opensolaris.arc_url metadata
-e 'if ($$_ =~ m{name=pkg.fmri value=(\S+)}) {' \
$(PKGDEST):
# Automatically exclude all pkg-config uninstalled.pc files, since those