Makefile revision 1258
493N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
379N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A
0N/Ainclude ../../../make-rules/shared-macros.mk
0N/A
0N/A# $(WS_TOP)/make-rules/ips.mk really isn't set up to allow you to bypass all
0N/A# the automatic (and lengthy) manifest manipulation that it does, which we
0N/A# really don't need to do for these static, uninteresting packages. So we just
0N/A# write a simple set of publication rules to get the packages into the repo.
0N/A
0N/APKGSEND = /usr/bin/pkgsend
0N/APKGLINT = /usr/bin/pkglint
0N/APKGMOGRIFY = /usr/bin/pkgmogrify
0N/A
0N/ACOMPONENT_NAME= "Package History"
0N/ACOMPONENT_BUGDB= gate-stuff/userland
493N/A
0N/ACANONICAL_MANIFESTS = $(wildcard *.p5m)
0N/AARCH_MANIFESTS = $(wildcard *.p5m.$(MACH))
493N/AGENERATED_ARCH_MANIFESTS = $(ARCH_MANIFESTS:%.p5m.$(MACH)=%.p5m)
0N/ACANONICAL_MANIFESTS += $(GENERATED_ARCH_MANIFESTS)
493N/A
0N/AMANIFEST_BASE = $(BUILD_DIR)/manifest-$(MACH)
0N/AMOGRIFIED = $(CANONICAL_MANIFESTS:%.p5m=$(MANIFEST_BASE)-%.mogrified)
493N/APUBLISHED = $(CANONICAL_MANIFESTS:%.p5m=$(MANIFEST_BASE)-%.published)
0N/A
0N/Adownload prep build install:
0N/A @echo "nothing to be done for $@"
0N/A
0N/A$(BUILD_DIR):
0N/A $(MKDIR) $@
0N/A
0N/A$(MANIFEST_BASE)-%.mogrified: %.p5m $(BUILD_DIR)
0N/A $(PKGMOGRIFY) -D CONSOLIDATION=$(CONSOLIDATION) $< > $@
0N/A
493N/A$(MANIFEST_BASE)-%.published: $(MANIFEST_BASE)-%.mogrified $(BUILD_DIR)
493N/A $(PKGSEND) -s $(PKG_REPO) publish --fmri-in-manifest $<
493N/A $(CP) $< $@
0N/A
493N/A$(BUILD_DIR)/.linted-$(MACH): $(MOGRIFIED) $(BUILD_DIR)
0N/A $(ENV) PYTHONPATH=$(WS_TOOLS)/python \
0N/A $(PKGLINT) $(CANONICAL_REPO:%=-c $(WS_LINT_CACHE)) \
0N/A -f $(WS_TOOLS)/pkglintrc $(MOGRIFIED)
0N/A $(TOUCH) $@
493N/A
0N/A$(BUILD_DIR)/.published-$(MACH): $(BUILD_DIR)/.linted-$(MACH) $(PUBLISHED)
0N/A $(TOUCH) $@
0N/A
0N/Apublish: $(BUILD_DIR)/.published-$(MACH)
0N/A
0N/A%.p5m: %.p5m.$(MACH)
0N/A $(CP) $< $@
0N/A
493N/Aclobber clean:
493N/A $(RM) -r $(BUILD_DIR) $(GENERATED_ARCH_MANIFESTS)
493N/A