xref: /titanic_50/usr/src/tools/scripts/Makefile (revision bdcb24662a4d1c5ad01a2223a6fdf1df70a6d731)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29SHFILES= \
30	Install \
31	acr \
32	bfu \
33	bldenv \
34	build_cscope \
35	bringovercheck \
36	checkpaths \
37	checkproto \
38	check_fnames \
39	cstyle \
40	elfcmp \
41	flg.flp \
42	genoffsets \
43	keywords \
44	makebfu \
45	mkacr \
46	mkbfu \
47	nightly \
48	protocmp.terse \
49	sccscheck \
50	sccscp \
51	sccshist \
52	sccsmv \
53	sccsrm \
54	webrev \
55	ws \
56	wx \
57	xref
58
59PERLFILES= \
60	cddlchk \
61	check_rtime \
62	hdrchk \
63	jstyle \
64	validate_flg \
65	validate_paths \
66	wdiff
67
68PYFILES= \
69	wsdiff
70
71MAN1FILES= \
72	Install.1 \
73	acr.1 \
74	bldenv.1 \
75	bringovercheck.1 \
76	cddlchk.1 \
77	checkpaths.1 \
78	check_rtime.1 \
79	cstyle.1 \
80	flg.flp.1 \
81	jstyle.1 \
82	mkacr.1 \
83	nightly.1 \
84	sccscheck.1 \
85	sccscp.1 \
86	sccsmv.1 \
87	sccsrm.1 \
88	webrev.1 \
89	ws.1 \
90	wsdiff.1 \
91	wx.1 \
92	xref.1
93
94MAKEFILES= \
95	xref.mk
96
97CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) cddlchk.1
98
99include ../Makefile.tools
100
101OWNER=		root
102GROUP=		bin
103$(ROOTONBLDMAN1FILES) := FILEMODE=	644
104$(ROOTONBLDMAKEFILES) := FILEMODE=	644
105
106.KEEP_STATE:
107
108all:	$(SHFILES) $(PERLFILES) $(PYFILES) $(MAN1FILES) $(MAKEFILES)
109
110install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
111		$(ROOTONBLDPYFILES) $(ROOTONBLDMAN1FILES) $(ROOTONBLDMAKEFILES)
112
113clean:
114	$(RM) $(CLEANFILES)
115
116cddlchk.1: cddlchk.pl
117	/usr/perl5/bin/pod2man --center='User Commands' --name=cddlchk \
118	--section=1 --release='SunOS $(RELEASE)' $? > $@
119
120include ../Makefile.targ
121
122