Makefile revision 708
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#
12N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
12N/A# Use is subject to license terms.
12N/A#
12N/A
12N/A# client.py -> /usr/bin/pkg
12N/A# pull.py -> /usr/bin/pkgrecv
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/
12N/A
12N/APYTHON = /usr/bin/python
12N/A
12N/Aall := TARGET = all
12N/Alink := TARGET = link
12N/Ainstall packages := TARGET = install
12N/Alink-clean := TARGET = link-clean
12N/Aclean := TARGET = clean
12N/Aclobber := TARGET = clobber
12N/Acoverage := TARGET = coverage
12N/Atest := TARGET = test
12N/Atest-verbose := TARGET = test-verbose
12N/Atest-generate := TARGET = test-generate
12N/Atest-leaks := TARGET = test-leaks
12N/A
12N/Aall:
12N/A $(PYTHON) setup.py build
12N/A @cd gui; pwd; $(MAKE) $(TARGET)
12N/A @cd um; pwd; $(MAKE) $(TARGET)
12N/A @cd po; pwd; $(MAKE) $(TARGET)
20N/A
20N/Aclean:
12N/A $(PYTHON) setup.py $(TARGET)
20N/A @cd gui; pwd; $(MAKE) $(TARGET)
20N/A @cd po; pwd; $(MAKE) $(TARGET)
12N/A
20N/Aclobber: clean
20N/A $(PYTHON) setup.py $(TARGET)
20N/A @cd gui; pwd; $(MAKE) $(TARGET)
12N/A @cd po; pwd; $(MAKE) $(TARGET)
12N/A
12N/Ainstall:
12N/A $(PYTHON) setup.py $(TARGET)
12N/A @cd gui; pwd; $(MAKE) $(TARGET)
20N/A @cd um; pwd; $(MAKE) $(TARGET)
20N/A @cd brand; pwd; $(MAKE) $(TARGET)
20N/A @cd po; pwd; $(MAKE) $(TARGET)
12N/A @cd util/misc; pwd; $(MAKE) $(TARGET)
12N/A
12N/Apackages: install
12N/A @cd pkgdefs; pwd; $(MAKE) $(TARGET)
12N/A
12N/A# XXX link is a developer target to connect the local machine to the current
12N/A# repository's working copy's versions of the commands, modules, and supporting
12N/A# files.
12N/APWD:sh = pwd
20N/Alink:
12N/A ln -sf $(PWD)/client.py /usr/bin/pkg
12N/A ln -sf $(PWD)/pull.py /usr/bin/pkgrecv
20N/A ln -sf $(PWD)/publish.py /usr/bin/pkgsend
12N/A ln -sf $(PWD)/depot.py /usr/lib/pkg.depotd
12N/A ln -sf $(PWD)/modules /usr/lib/python2.4/vendor-packages/pkg
20N/A ln -sf $(PWD)/pkg-server.xml /var/svc/manifest/application/pkg-server.xml
12N/A ln -sf $(PWD)/pkg-update.xml /var/svc/manifest/application/pkg-update.xml
12N/A @cd web; pwd; $(MAKE) $(TARGET)
12N/A @cd brand; pwd; $(MAKE) $(TARGET)
12N/A @cd man; pwd; $(MAKE) $(TARGET)
12N/A @cd gui; pwd; $(MAKE) $(TARGET)
12N/A @cd um; pwd; $(MAKE) $(TARGET)
12N/A
12N/Alink-clean:
12N/A rm -f /usr/bin/pkg
12N/A rm -f /usr/bin/pkgrecv
rm -f /usr/bin/pkgsend
rm -f /usr/lib/pkg.depotd
rm -f /usr/lib/python2.4/vendor-packages/pkg
rm -f /var/svc/manifest/application/pkg-server.xml
rm -f /var/svc/manifest/application/pkg-update.xml
@cd web; pwd; $(MAKE) $(TARGET)
@cd brand; pwd; $(MAKE) $(TARGET)
@cd man; pwd; $(MAKE) $(TARGET)
@cd gui; pwd; $(MAKE) $(TARGET)
@cd um; pwd; $(MAKE) $(TARGET)
test:
$(PYTHON) setup.py test
test-verbose:
$(PYTHON) setup.py test -v
test-generate:
$(PYTHON) setup.py test -g
test-leaks:
@cd tests; pwd; /bin/ksh memleaks.ksh
coverage:
$(PYTHON) setup.py coverage