xref: /illumos-gate/usr/src/tools/scripts/Makefile (revision 09295472)
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
68MAN1FILES= \
69	Install.1 \
70	acr.1 \
71	bldenv.1 \
72	bringovercheck.1 \
73	cddlchk.1 \
74	checkpaths.1 \
75	check_rtime.1 \
76	cstyle.1 \
77	flg.flp.1 \
78	jstyle.1 \
79	mkacr.1 \
80	nightly.1 \
81	sccscheck.1 \
82	sccscp.1 \
83	sccsmv.1 \
84	sccsrm.1 \
85	webrev.1 \
86	ws.1 \
87	wx.1 \
88	xref.1
89
90MAKEFILES= \
91	xref.mk
92
93CLEANFILES = $(SHFILES) $(PERLFILES) cddlchk.1
94
95include ../Makefile.tools
96
97OWNER=		root
98GROUP=		bin
99$(ROOTONBLDMAN1FILES) := FILEMODE=	644
100$(ROOTONBLDMAKEFILES) := FILEMODE=	644
101
102.KEEP_STATE:
103
104all:	$(SHFILES) $(PERLFILES) $(MAN1FILES) $(MAKEFILES)
105
106install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
107		$(ROOTONBLDMAN1FILES) $(ROOTONBLDMAKEFILES)
108
109clean:
110	$(RM) $(CLEANFILES)
111
112cddlchk.1: cddlchk.pl
113	/usr/perl5/bin/pod2man --center='User Commands' --name=cddlchk \
114	--section=1 --release='SunOS $(RELEASE)' $? > $@
115
116include ../Makefile.targ
117
118