Makefile revision 136
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# CDDL HEADER START
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# The contents of this file are subject to the terms of the
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# Common Development and Distribution License (the "License").
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# You may not use this file except in compliance with the License.
f6ba2de94f207839983e1b5b4bac930df465f572Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f6ba2de94f207839983e1b5b4bac930df465f572Timo Sirainen# See the License for the specific language governing permissions
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# and limitations under the License.
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
b5cbeb103ba21f96d71afc4a53412ad81ed898c6Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
fd1f9cd9b139c2004d896108c440793949043562Timo Sirainen# CDDL HEADER END
31105f2fa51d648c07f85585452352aa83b6244cTimo Sirainen# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
fd1f9cd9b139c2004d896108c440793949043562Timo Sirainen# Use is subject to license terms.
fd1f9cd9b139c2004d896108c440793949043562Timo Sirainen# pkg/*.py -> /usr/lib/python2.4/vendor-packages/pkg/
31ddc69105cb9540f0e1f219157dc0c684831ac4Timo SirainenROOTPYTHONVENDOR = $(ROOTPYTHON)/vendor-packages
31ddc69105cb9540f0e1f219157dc0c684831ac4Timo SirainenLINKPYTHONPKG = /usr/lib/python2.4/vendor-packages/pkg
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen modules/bundle/SolarisPackageDatastreamBundle.py \
6cdc919454b0f1503c6e42be1a7163260c9c3ea6Timo SirainenROOTPYMODS = $(PYMODS:modules/%=$(ROOTPYTHONPKG)/%)
6cdc919454b0f1503c6e42be1a7163260c9c3ea6Timo Sirainen $(PYACTIONMODS:modules/actions/%=$(ROOTPYTHONPKG)/actions/%)
6cdc919454b0f1503c6e42be1a7163260c9c3ea6Timo Sirainen $(PYSERVERMODS:modules/server/%=$(ROOTPYTHONPKG)/server/%)
6cdc919454b0f1503c6e42be1a7163260c9c3ea6Timo Sirainen $(PYPUBLISHMODS:modules/publish/%=$(ROOTPYTHONPKG)/publish/%)
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen $(PYCLIENTMODS:modules/client/%=$(ROOTPYTHONPKG)/client/%)
31ddc69105cb9540f0e1f219157dc0c684831ac4Timo Sirainen $(PYBUNDLEMODS:modules/bundle/%=$(ROOTPYTHONPKG)/bundle/%)
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo SirainenROOTPKGMANIFEST = $(ROOTMANIFEST)/pkg-server.xml
f6ba2de94f207839983e1b5b4bac930df465f572Timo Sirainen rm -f $(PYCMODS) $(PYCACTIONMODS) $(PYCSERVERMODS) \
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen $(PYCPUBLISHMODS) $(PYCCLIENTMODS) $(PYCBUNDLEMODS)
f6ba2de94f207839983e1b5b4bac930df465f572Timo Sirainen# XXX link is a developer target to connect the local machine to the current
f6ba2de94f207839983e1b5b4bac930df465f572Timo Sirainen# repository's working copy's versions of the commands, modules, and supporting
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen ln -sf $(PWD)/modules /usr/lib/python2.4/vendor-packages/pkg
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen ln -sf $(PWD)/pkg-server.xml /var/svc/manifest/pkg-server.xml
7bd72e4deca3cbf757dd1ea298486d9f3bc24226Timo Sirainen# Invoke all known modules with tests.
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen# XXX Invoke the bundle tests.
7bd72e4deca3cbf757dd1ea298486d9f3bc24226Timo Sirainen # $(PYTHON) $(LINKPYTHONPKG)/bundle/__init__.py a_sysv_pkg
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen # $(PYTHON) $(LINKPYTHONPKG)/bundle/__init__.py a_tarball
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen $(PYTHON) $(LINKPYTHONPKG)/client/imageconfig.py
b5cbeb103ba21f96d71afc4a53412ad81ed898c6Timo Sirainen rm -f $@; install -f $(ROOT)/usr/lib -m 0555 $<
b5cbeb103ba21f96d71afc4a53412ad81ed898c6Timo Sirainen rm -f $@; install -f $(ROOTPYTHONPKG)/actions -m 0444 $<
b5cbeb103ba21f96d71afc4a53412ad81ed898c6Timo Sirainen rm -f $@; install -f $(ROOTPYTHONPKG)/server -m 0444 $<
b5cbeb103ba21f96d71afc4a53412ad81ed898c6Timo Sirainen rm -f $@; install -f $(ROOTPYTHONPKG)/publish -m 0444 $<
b5cbeb103ba21f96d71afc4a53412ad81ed898c6Timo Sirainen rm -f $@; install -f $(ROOTPYTHONPKG)/client -m 0444 $<
b5cbeb103ba21f96d71afc4a53412ad81ed898c6Timo Sirainen rm -f $@; install -f $(ROOTPYTHONPKG)/bundle -m 0444 $<
b5cbeb103ba21f96d71afc4a53412ad81ed898c6Timo Sirainen rm -f $@; install -f $(ROOTPYTHONPKG) -m 0555 $<
b5cbeb103ba21f96d71afc4a53412ad81ed898c6Timo Sirainen rm -f $@; install -f $(ROOTPYTHONPKG) -m 0444 $<
b5cbeb103ba21f96d71afc4a53412ad81ed898c6Timo Sirainen rm -f $@; install -f $(ROOTMANIFEST) -m 0444 $<