components/meta-packages/history/Makefile
author Danek Duvall <danek.duvall@oracle.com>
Tue, 19 Apr 2011 15:43:11 -0700
changeset 187 80d8cb349fea
parent 145 1e2390f5555e
child 191 75b0ee5251ca
permissions -rw-r--r--
7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
145
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     1
#
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     3
#
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     7
#
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    12
#
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    18
#
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    20
#
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    21
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    22
#
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    23
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    24
include ../../../make-rules/shared-macros.mk
187
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    25
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    26
# $(WS_TOP)/make-rules/ips.mk really isn't set up to allow you to bypass all
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    27
# the automatic (and lengthy) manifest manipulation that it does, which we
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    28
# really don't need to do for these static, uninteresting packages.  So we just
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    29
# write a simple set of publication rules to get the packages into the repo.
145
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    30
187
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    31
PKGSEND =	/usr/bin/pkgsend
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    32
PKGLINT =	/usr/bin/pkglint
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    33
PKGMOGRIFY =	/usr/bin/pkgmogrify
145
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    34
187
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    35
CANONICAL_MANIFESTS =	$(wildcard *.p5m)
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    36
MANIFEST_BASE =		$(BUILD_DIR)/manifest-$(MACH)
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    37
MOGRIFIED =		$(CANONICAL_MANIFESTS:%.p5m=$(MANIFEST_BASE)-%.mogrified)
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    38
PUBLISHED =		$(CANONICAL_MANIFESTS:%.p5m=$(MANIFEST_BASE)-%.published)
145
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    39
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    40
$(BUILD_DIR):
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    41
	$(MKDIR) $@
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    42
187
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    43
$(MANIFEST_BASE)-%.mogrified: %.p5m $(BUILD_DIR)
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    44
	$(PKGMOGRIFY) -D CONSOLIDATION=$(CONSOLIDATION) $< > $@
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    45
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    46
$(MANIFEST_BASE)-%.published: $(MANIFEST_BASE)-%.mogrified $(BUILD_DIR)
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    47
	$(PKGSEND) -s $(PKG_REPO) publish --fmri-in-manifest $<
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    48
	$(TOUCH) $@
145
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    49
187
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    50
$(BUILD_DIR)/.linted-$(MACH): $(MOGRIFIED) $(BUILD_DIR)
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    51
	$(ENV) PYTHONPATH=$(WS_TOOLS)/python \
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    52
		$(PKGLINT) $(CANONICAL_REPO:%=-c $(WS_LINT_CACHE)) \
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    53
			-f $(WS_TOOLS)/pkglintrc $(MOGRIFIED)
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    54
	$(TOUCH) $@
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    55
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    56
$(BUILD_DIR)/.published-$(MACH): $(BUILD_DIR)/.linted-$(MACH) $(PUBLISHED)
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    57
	$(TOUCH) $@
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    58
80d8cb349fea 7036473 dependency resolution should happen in one step for all component's packages (fix historical packages build)
Danek Duvall <danek.duvall@oracle.com>
parents: 145
diff changeset
    59
publish: $(BUILD_DIR)/.published-$(MACH)
145
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    60
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    61
clobber clean:
1e2390f5555e 7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    62
	$(RM) -r $(BUILD_DIR)