Makefile revision 2626
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#
2306N/A# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
12N/A#
12N/A
1516N/APYTHON = /usr/bin/python2.6
30N/A
30N/Aall := TARGET = all
849N/Ainstall := TARGET = install
1980N/Apackages := TARGET = install
124N/Aclean := TARGET = clean
124N/Aclobber := TARGET = clobber
2339N/Alint := TARGET = lint
2339N/Aclint := TARGET = clint
2339N/Apylint := TARGET = pylint
181N/Atest := TARGET = test
181N/Atest-verbose := TARGET = test-verbose
430N/Atest-generate := TARGET = test-generate
448N/Atest-leaks := TARGET = test-leaks
30N/A
2535N/ASUBDIRS=zoneproxy tsol
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
2339N/A#
2339N/A# run pylint as part of the install target.
2339N/A# it's the best way to ensure things stay pylint clean.
2339N/A#
859N/Ainstall: $(SUBDIRS)
859N/A $(PYTHON) setup.py install
2339N/A
2339N/Alint:
2339N/A $(PYTHON) setup.py lint
2339N/A
2339N/Aclint:
2339N/A $(PYTHON) setup.py clint
2339N/A
2339N/Apylint:
2339N/A $(PYTHON) setup.py pylint
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
1984N/A# Use the bits we just built to create the packages.
2510N/Apackages: install pylint
2626N/A @cd pkg; pwd; $(MAKE) $(TARGET) check \
1984N/A PATH=$$(hg root)/proto/root_$$(uname -p)/usr/bin:$$PATH \
1984N/A PYTHONPATH=$$(hg root)/proto/root_$$(uname -p)/usr/lib/python2.6/vendor-packages
30N/A
30N/Atest:
395N/A $(PYTHON) setup.py test
181N/A
430N/Atest-verbose:
430N/A $(PYTHON) setup.py test -v
430N/A
2339N/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: