xref: /onnv-gate/usr/src/cmd/pyzfs/Makefile (revision 12961:f0448f1d899f)
19396SMatthew.Ahrens@Sun.COM#
29396SMatthew.Ahrens@Sun.COM# CDDL HEADER START
39396SMatthew.Ahrens@Sun.COM#
49396SMatthew.Ahrens@Sun.COM# The contents of this file are subject to the terms of the
59396SMatthew.Ahrens@Sun.COM# Common Development and Distribution License (the "License").
69396SMatthew.Ahrens@Sun.COM# You may not use this file except in compliance with the License.
79396SMatthew.Ahrens@Sun.COM#
89396SMatthew.Ahrens@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99396SMatthew.Ahrens@Sun.COM# or http://www.opensolaris.org/os/licensing.
109396SMatthew.Ahrens@Sun.COM# See the License for the specific language governing permissions
119396SMatthew.Ahrens@Sun.COM# and limitations under the License.
129396SMatthew.Ahrens@Sun.COM#
139396SMatthew.Ahrens@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
149396SMatthew.Ahrens@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159396SMatthew.Ahrens@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
169396SMatthew.Ahrens@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
179396SMatthew.Ahrens@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
189396SMatthew.Ahrens@Sun.COM#
199396SMatthew.Ahrens@Sun.COM# CDDL HEADER END
209396SMatthew.Ahrens@Sun.COM#
219396SMatthew.Ahrens@Sun.COM#
22*12961Slori.alt@oracle.com# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
239396SMatthew.Ahrens@Sun.COM#
249396SMatthew.Ahrens@Sun.COM
259396SMatthew.Ahrens@Sun.COMinclude ../Makefile.cmd
269396SMatthew.Ahrens@Sun.COM
279396SMatthew.Ahrens@Sun.COMROOTCMDDIR=	$(ROOTLIB)/zfs
289396SMatthew.Ahrens@Sun.COM
299396SMatthew.Ahrens@Sun.COMPYSRCS=		pyzfs.py
309396SMatthew.Ahrens@Sun.COMPYOBJS=		$(PYSRCS:%.py=%.pyc)
319396SMatthew.Ahrens@Sun.COMPYFILES=	$(PYSRCS) $(PYOBJS)
329396SMatthew.Ahrens@Sun.COMPOFILE=		pyzfs.po
33*12961Slori.alt@oracle.comPYTHON=		$(PYTHON_26)
349396SMatthew.Ahrens@Sun.COM
359396SMatthew.Ahrens@Sun.COMROOTLIBZFSFILES= $(PYFILES:%=$(ROOTLIB)/zfs/%)
369396SMatthew.Ahrens@Sun.COM
379396SMatthew.Ahrens@Sun.COM.KEEP_STATE:
389396SMatthew.Ahrens@Sun.COM
399396SMatthew.Ahrens@Sun.COMall: $(PYOBJS)
409396SMatthew.Ahrens@Sun.COM
419396SMatthew.Ahrens@Sun.COMinstall: all $(ROOTLIBZFSFILES)
429396SMatthew.Ahrens@Sun.COM
439396SMatthew.Ahrens@Sun.COMclean:
449396SMatthew.Ahrens@Sun.COM	$(RM) $(PYOBJS)
459396SMatthew.Ahrens@Sun.COM
469396SMatthew.Ahrens@Sun.COM$(ROOTLIB)/zfs/%: %
479396SMatthew.Ahrens@Sun.COM	$(INS.pyfile)
489396SMatthew.Ahrens@Sun.COM
499396SMatthew.Ahrens@Sun.COMinclude ../Makefile.targ
50