xref: /titanic_50/usr/src/tools/scripts/Makefile (revision 7c4dcc5546f9f002dfc2b95de47c90f00d07c066)
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	checkpaths \
36	checkproto \
37	check_fnames \
38	cstyle \
39	elfcmp \
40	flg.flp \
41	genoffsets \
42	keywords \
43	makebfu \
44	mkacr \
45	mkbfu \
46	nightly \
47	protocmp.terse \
48	sccscp \
49	sccshist \
50	sccsmv \
51	sccsrm \
52	webrev \
53	ws \
54	wx \
55	xref
56
57PERLFILES= \
58	cddlchk \
59	check_rtime \
60	hdrchk \
61	jstyle \
62	validate_flg \
63	validate_paths \
64	wdiff
65
66MAN1FILES= \
67	Install.1 \
68	acr.1 \
69	bldenv.1 \
70	cddlchk.1 \
71	checkpaths.1 \
72	check_rtime.1 \
73	cstyle.1 \
74	flg.flp.1 \
75	jstyle.1 \
76	mkacr.1 \
77	nightly.1 \
78	sccscp.1 \
79	sccsmv.1 \
80	sccsrm.1 \
81	webrev.1 \
82	ws.1 \
83	wx.1 \
84	xref.1
85
86MAKEFILES= \
87	xref.mk
88
89CLEANFILES = $(SHFILES) $(PERLFILES) cddlchk.1
90
91include ../Makefile.tools
92
93OWNER=		root
94GROUP=		bin
95$(ROOTONBLDMAN1FILES) := FILEMODE=	644
96$(ROOTONBLDMAKEFILES) := FILEMODE=	644
97
98.KEEP_STATE:
99
100all:	$(SHFILES) $(PERLFILES) $(MAN1FILES) $(MAKEFILES)
101
102install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
103		$(ROOTONBLDMAN1FILES) $(ROOTONBLDMAKEFILES)
104
105clean:
106	$(RM) $(CLEANFILES)
107
108cddlchk.1: cddlchk.pl
109	/usr/perl5/bin/pod2man --center='User Commands' --name=cddlchk \
110	--section=1 --release='SunOS $(RELEASE)' $? > $@
111
112include ../Makefile.targ
113
114