Makefile revision 3468
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# CDDL HEADER START
9a583c7a827f7a4d89ee43774f2d51ea6a214543Timo Sirainen# The contents of this file are subject to the terms of the
16f816d3f3c32ae3351834253f52ddd0212bcbf3Timo Sirainen# Common Development and Distribution License (the "License").
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# You may not use this file except in compliance with the License.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen# See the License for the specific language governing permissions
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# and limitations under the License.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
fd2f5fbc1f07aa93e2214a28cdf02437fb7d06c8Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
dd0ba1bab2c1b89c7e063fa45d156fa72b8260d5Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
6cd02a9525acb9897a65b05bfeee9b8d283e0f74Timo Sirainen# CDDL HEADER END
6cd02a9525acb9897a65b05bfeee9b8d283e0f74Timo Sirainen# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# $(WS_TOP)/make-rules/ips.mk really isn't set up to allow you to bypass all
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# the automatic (and lengthy) manifest manipulation that it does, which we
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# really don't need to do for these static, uninteresting packages. So we just
a2ce2eb4c266e2854fd34416ea5cfbe05dfd3971Timo Sirainen# write a simple set of publication rules to get the packages into the repo.
df6478c4cf605bd81b3891c148b84c14eb6c4035Timo SirainenGENERATED_ARCH_MANIFESTS = $(ARCH_MANIFESTS:%.p5m.$(MACH)=%.p5m)
72cbf33ae81fde08384d30c779ff540752d9256cTimo SirainenCANONICAL_MANIFESTS += $(GENERATED_ARCH_MANIFESTS)
e1f05b193ac1edd3267294e9501e8063aa0f791aTimo SirainenMOGRIFIED = $(CANONICAL_MANIFESTS:%.p5m=$(MANIFEST_BASE)-%.mogrified)
e1f05b193ac1edd3267294e9501e8063aa0f791aTimo SirainenPUBLISHED = $(CANONICAL_MANIFESTS:%.p5m=$(MANIFEST_BASE)-%.published)
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen @echo "nothing to be done for $@"
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen$(MANIFEST_BASE)-%.mogrified: %.p5m $(BUILD_DIR)
72cbf33ae81fde08384d30c779ff540752d9256cTimo Sirainen $(PKGMOGRIFY) -D CONSOLIDATION=$(CONSOLIDATION) $< \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen$(MANIFEST_BASE)-%.published: $(MANIFEST_BASE)-%.mogrified $(BUILD_DIR)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen $(PKGSEND) -s $(PKG_REPO) publish --fmri-in-manifest --no-catalog $<
ee26329cb5cc679b5645e4933d529f86accb976aTimo Sirainen$(BUILD_DIR)/.linted-$(MACH): $(MOGRIFIED) $(BUILD_DIR)
6a19e109ee8c5a6f688da83a86a7f6abeb71abddTimo Sirainen $(PKGLINT) $(CANONICAL_REPO:%=-c $(WS_LINT_CACHE)) \
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen$(BUILD_DIR)/.published-$(MACH): $(BUILD_DIR)/.linted-$(MACH) $(PUBLISHED)