Makefile revision 1980
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#
1980N/A
12N/A#
1980N/A# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
12N/A#
12N/A
1516N/APYTHON = /usr/bin/python2.6
30N/A
30N/Aall := TARGET = all
97N/Alink := TARGET = link
849N/Ainstall := TARGET = install
1980N/Apackages := TARGET = install
120N/Alink-clean := TARGET = link-clean
124N/Aclean := TARGET = clean
124N/Aclobber := TARGET = clobber
181N/Atest := TARGET = test
181N/Atest-verbose := TARGET = test-verbose
430N/Atest-generate := TARGET = test-generate
448N/Atest-leaks := TARGET = test-leaks
30N/A
859N/ASUBDIRS=web gui um po util/misc brand
859N/A
859N/Aall: $(SUBDIRS)
395N/A $(PYTHON) setup.py build
12N/A
859N/Aclean: $(SUBDIRS)
859N/A $(PYTHON) setup.py clean
1980N/A @cd pkg; pwd; make clean
20N/A
859N/Aclobber: $(SUBDIRS)
859N/A $(PYTHON) setup.py clobber
1980N/A @cd pkg; pwd; make clobber
859N/A
859N/Ainstall: $(SUBDIRS)
859N/A $(PYTHON) setup.py install
33N/A
859N/A#
859N/A# This rule propagates the current make target through all of the
859N/A# subdirectories in $SUBDIRS.
859N/A#
859N/A$(SUBDIRS): FRC
859N/A @cd $@; pwd; $(MAKE) $(TARGET)
422N/A
422N/Apackages: install
1980N/A @cd pkg; pwd; $(MAKE) $(TARGET) check
30N/A
22N/A# XXX link is a developer target to connect the local machine to the current
114N/A# repository's working copy's versions of the commands, modules, and supporting
114N/A# files.
22N/APWD:sh = pwd
22N/Alink:
120N/A ln -sf $(PWD)/client.py /usr/bin/pkg
375N/A ln -sf $(PWD)/pull.py /usr/bin/pkgrecv
120N/A ln -sf $(PWD)/publish.py /usr/bin/pkgsend
120N/A ln -sf $(PWD)/depot.py /usr/lib/pkg.depotd
1516N/A ln -sf $(PWD)/modules /usr/lib/python2.6/vendor-packages/pkg
244N/A ln -sf $(PWD)/pkg-server.xml /var/svc/manifest/application/pkg-server.xml
578N/A ln -sf $(PWD)/pkg-update.xml /var/svc/manifest/application/pkg-update.xml
114N/A @cd web; pwd; $(MAKE) $(TARGET)
97N/A @cd brand; pwd; $(MAKE) $(TARGET)
114N/A @cd man; pwd; $(MAKE) $(TARGET)
424N/A @cd gui; pwd; $(MAKE) $(TARGET)
578N/A @cd um; pwd; $(MAKE) $(TARGET)
22N/A
120N/Alink-clean:
120N/A rm -f /usr/bin/pkg
375N/A rm -f /usr/bin/pkgrecv
120N/A rm -f /usr/bin/pkgsend
120N/A rm -f /usr/lib/pkg.depotd
1516N/A rm -f /usr/lib/python2.6/vendor-packages/pkg
244N/A rm -f /var/svc/manifest/application/pkg-server.xml
578N/A rm -f /var/svc/manifest/application/pkg-update.xml
120N/A @cd web; pwd; $(MAKE) $(TARGET)
120N/A @cd brand; pwd; $(MAKE) $(TARGET)
120N/A @cd man; pwd; $(MAKE) $(TARGET)
424N/A @cd gui; pwd; $(MAKE) $(TARGET)
578N/A @cd um; pwd; $(MAKE) $(TARGET)
135N/A
30N/Atest:
395N/A $(PYTHON) setup.py test
181N/A
430N/Atest-verbose:
430N/A $(PYTHON) setup.py test -v
430N/A
430N/Atest-generate:
430N/A $(PYTHON) setup.py test -g
448N/A
448N/Atest-leaks:
448N/A @cd tests; pwd; /bin/ksh memleaks.ksh
708N/A
859N/AFRC: