xref: /illumos-gate/usr/src/tools/onbld/Checks/Makefile (revision bfed486ad8de8b8ebc6345a8e10accae08bf2f45)
1cdf0c1d5Smjnelson#
2cdf0c1d5Smjnelson# CDDL HEADER START
3cdf0c1d5Smjnelson#
4cdf0c1d5Smjnelson# The contents of this file are subject to the terms of the
5cdf0c1d5Smjnelson# Common Development and Distribution License (the "License").
6cdf0c1d5Smjnelson# You may not use this file except in compliance with the License.
7cdf0c1d5Smjnelson#
8cdf0c1d5Smjnelson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9cdf0c1d5Smjnelson# or http://www.opensolaris.org/os/licensing.
10cdf0c1d5Smjnelson# See the License for the specific language governing permissions
11cdf0c1d5Smjnelson# and limitations under the License.
12cdf0c1d5Smjnelson#
13cdf0c1d5Smjnelson# When distributing Covered Code, include this CDDL HEADER in each
14cdf0c1d5Smjnelson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15cdf0c1d5Smjnelson# If applicable, add the following below this CDDL HEADER, with the
16cdf0c1d5Smjnelson# fields enclosed by brackets "[]" replaced with your own identifying
17cdf0c1d5Smjnelson# information: Portions Copyright [yyyy] [name of copyright owner]
18cdf0c1d5Smjnelson#
19cdf0c1d5Smjnelson# CDDL HEADER END
20cdf0c1d5Smjnelson#
21cdf0c1d5Smjnelson
22cdf0c1d5Smjnelson#
23*bfed486aSAli Bahrami# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24cdf0c1d5Smjnelson# Use is subject to license terms.
25cdf0c1d5Smjnelson#
26cdf0c1d5Smjnelson
27cdf0c1d5Smjnelsoninclude $(SRC)/Makefile.master
28cdf0c1d5Smjnelsoninclude ../../Makefile.tools
29cdf0c1d5Smjnelson
30cdf0c1d5SmjnelsonPYSRCS= \
31cdf0c1d5Smjnelson	CStyle.py	\
32cdf0c1d5Smjnelson	Cddl.py		\
33*bfed486aSAli Bahrami	CmtBlk.py	\
34cdf0c1d5Smjnelson	Comments.py	\
35cdf0c1d5Smjnelson	Copyright.py	\
36cdf0c1d5Smjnelson	DbLookups.py	\
37cdf0c1d5Smjnelson	HdrChk.py	\
38cdf0c1d5Smjnelson	JStyle.py	\
39cdf0c1d5Smjnelson	Keywords.py	\
40*bfed486aSAli Bahrami	Mapfile.py		\
41cdf0c1d5Smjnelson	ProcessCheck.py \
42cdf0c1d5Smjnelson	Rti.py		\
43cdf0c1d5Smjnelson	__init__.py
44cdf0c1d5Smjnelson
45cdf0c1d5SmjnelsonPYOBJS = $(PYSRCS:%.py=%.pyc)
46cdf0c1d5Smjnelson
47cdf0c1d5SmjnelsonPYFILES= $(PYSRCS) $(PYOBJS)
48cdf0c1d5Smjnelson
49cdf0c1d5SmjnelsonROOTONBLDCHECKSFILES=	$(PYFILES:%=$(ROOTONBLDLIBPY)/onbld/Checks/%)
50cdf0c1d5Smjnelson$(ROOTONBLDCHECKSFILES) := FILEMODE = 0444
51cdf0c1d5Smjnelson
52cdf0c1d5Smjnelson.KEEP_STATE:
53cdf0c1d5Smjnelson
54cdf0c1d5Smjnelsonall: $(PYOBJS)
55cdf0c1d5Smjnelson
56cdf0c1d5Smjnelsoninstall: $(ROOTONBLDCHECKSFILES)
57cdf0c1d5Smjnelson
58cdf0c1d5Smjnelsonclean:
59cdf0c1d5Smjnelson	$(RM) $(PYOBJS)
60cdf0c1d5Smjnelson
61cdf0c1d5Smjnelson$(ROOTONBLDLIBPY)/onbld/Checks/%: %
62cdf0c1d5Smjnelson	$(INS.pyfile)
63cdf0c1d5Smjnelson
64cdf0c1d5Smjnelsoninclude ../../Makefile.targ
65