xref: /titanic_41/usr/src/tools/scripts/Makefile (revision 657b1f3d64bcf8eaa2385dba72a6047f089433b2)
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	mkclosed \
48	nightly \
49	protocmp.terse \
50	sccscheck \
51	sccscp \
52	sccshist \
53	sccsmv \
54	sccsrm \
55	webrev \
56	ws \
57	wx \
58	xref
59
60PERLFILES= \
61	cddlchk \
62	check_rtime \
63	hdrchk \
64	jstyle \
65	validate_flg \
66	validate_paths \
67	wdiff
68
69PYFILES= \
70	wsdiff
71
72MAN1FILES= \
73	Install.1 \
74	acr.1 \
75	bldenv.1 \
76	bringovercheck.1 \
77	cddlchk.1 \
78	checkpaths.1 \
79	check_rtime.1 \
80	cstyle.1 \
81	flg.flp.1 \
82	jstyle.1 \
83	mkacr.1 \
84	nightly.1 \
85	sccscheck.1 \
86	sccscp.1 \
87	sccsmv.1 \
88	sccsrm.1 \
89	webrev.1 \
90	ws.1 \
91	wsdiff.1 \
92	wx.1 \
93	xref.1
94
95MAKEFILES= \
96	xref.mk
97
98CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) cddlchk.1
99
100include ../Makefile.tools
101
102OWNER=		root
103GROUP=		bin
104$(ROOTONBLDMAN1FILES) := FILEMODE=	644
105$(ROOTONBLDMAKEFILES) := FILEMODE=	644
106
107.KEEP_STATE:
108
109all:	$(SHFILES) $(PERLFILES) $(PYFILES) $(MAN1FILES) $(MAKEFILES)
110
111install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
112		$(ROOTONBLDPYFILES) $(ROOTONBLDMAN1FILES) $(ROOTONBLDMAKEFILES)
113
114clean:
115	$(RM) $(CLEANFILES)
116
117bldenv: bldenv.sh stdenv.sh
118	$(RM) $@
119	sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > bldenv
120	$(CHMOD) +x $@
121
122nightly: nightly.sh stdenv.sh
123	$(RM) $@
124	sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
125	$(CHMOD) +x $@
126
127cddlchk.1: cddlchk.pl
128	/usr/perl5/bin/pod2man --center='User Commands' --name=cddlchk \
129	--section=1 --release='SunOS $(RELEASE)' $? > $@
130
131include ../Makefile.targ
132
133