Makefile revision 20
12N/A#
12N/A# CDDL HEADER START
12N/A#
12N/A# The contents of this file are subject to the terms of the
12N/A# Common Development and Distribution License (the "License").
12N/A# You may not use this file except in compliance with the License.
12N/A#
12N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12N/A# or http://www.opensolaris.org/os/licensing.
12N/A# See the License for the specific language governing permissions
12N/A# and limitations under the License.
12N/A#
12N/A# When distributing Covered Code, include this CDDL HEADER in each
12N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
12N/A# If applicable, add the following below this CDDL HEADER, with the
12N/A# fields enclosed by brackets "[]" replaced with your own identifying
12N/A# information: Portions Copyright [yyyy] [name of copyright owner]
12N/A#
12N/A# CDDL HEADER END
12N/A#
244N/A
12N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
12N/A# Use is subject to license terms.
12N/A#
12N/A#ident "$Hg$ SMI"
375N/A
12N/A# client.py -> /usr/bin/pkg
12N/A# publish.py -> /usr/bin/pkgsend
12N/A# depot.py -> /usr/lib/pkg.depotd
12N/A#
12N/A# pkg/*.py -> /usr/lib/python2.4/vendor-packages/pkg/
30N/A
30N/AMACH:sh = uname -p
30N/A
97N/AROOT = ../proto/root_${MACH}
422N/AROOTUSRBIN = $(ROOT)/usr/bin
120N/AROOTUSRLIB = $(ROOT)/usr/lib
124N/AROOTPYTHON = $(ROOTUSRLIB)/python2.4
124N/AROOTPYTHONVENDOR = $(ROOTPYTHON)/vendor-packages
708N/AROOTPYTHONPKG = $(ROOTPYTHONVENDOR)/pkg
181N/A
181N/AROOTDIRS = $(ROOT) $(ROOTUSRBIN) $(ROOTUSRLIB) $(ROOTPYTHONPKG)
430N/A
448N/APROGS = pkg pkgsend pkg.depotd
30N/AROOTPROGS = \
395N/A $(ROOT)/usr/bin/pkg \
395N/A $(ROOT)/usr/bin/pkgsend \
424N/A $(ROOT)/usr/lib/pkg.depotd
578N/A
660N/APYMODS = \
12N/A pkg-modules/__init__.py \
20N/A pkg-modules/catalog.py \
395N/A pkg-modules/config.py \
514N/A pkg-modules/content.py \
660N/A pkg-modules/dependency.py \
20N/A pkg-modules/fmri.py \
33N/A pkg-modules/image.py \
395N/A pkg-modules/package.py \
514N/A pkg-modules/sysvpkg.py \
660N/A pkg-modules/version.py
33N/AROOTPYMODS = $(PYMODS:pkg-modules/%=$(ROOTPYTHONPKG)/%)
422N/A
395N/Aall: $(PROGS)
424N/A
578N/Aclean:
98N/A rm -f $(PROGS)
660N/A
618N/Ainstall: $(ROOTDIRS) $(ROOTPROGS) $(ROOTPYMODS)
422N/A
422N/A$(ROOT) $(ROOTUSRBIN) $(ROOTUSRLIB) $(ROOTPYTHONPKG):
98N/A mkdir -p $(ROOT)
30N/A mkdir -p $(ROOTUSRBIN)
22N/A mkdir -p $(ROOTUSRLIB)
114N/A mkdir -p $(ROOTPYTHONPKG)
114N/A
22N/A$(ROOTUSRBIN)/%: %
22N/A rm -f $@; install -f $(ROOTUSRBIN) -m 0555 $<
120N/A
375N/A$(ROOTUSRLIB)/%: %
120N/A rm -f $@; install -f $(ROOT)/usr/lib -m 0555 $<
120N/A
120N/A$(ROOTPYTHONPKG)/%: pkg-modules/%
244N/A rm -f $@; install -f $(ROOTPYTHONPKG) -m 0444 $<
578N/A
114N/Apkg: client.py
97N/A cp client.py pkg
114N/A
424N/Apkgsend: publish.py
578N/A cp publish.py pkgsend
22N/A
120N/Apkg.depotd: depot.py
120N/A cp depot.py pkg.depotd
375N/A
120N/A