dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / tools / scripts / Makefile
blobc905a07e9983ee48c9c407a3ec5896d1bd61c266
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2010, Richard Lowe
26 SHELL=/usr/bin/ksh93
28 SHFILES= \
29 Install \
30 checkpaths \
31 checkproto \
32 cstyle \
33 elfcmp \
34 genoffsets \
35 protocmp.terse \
37 PERLFILES= \
38 check_rtime \
39 find_elf \
40 interface_check \
41 interface_cmp \
42 validate_paths
44 PERLMODULES= \
45 onbld_elfmod.pm \
46 onbld_elfmod_vertype.pm
49 PYFILES= \
50 cddlchk \
51 copyrightchk \
52 git-pbchk \
53 hdrchk \
54 mapfilechk \
55 validate_pkg \
56 wsdiff
58 SCRIPTLINKS= \
59 git-nits
61 MAN1ONBLDFILES= \
62 Install.1onbld \
63 cddlchk.1onbld \
64 checkpaths.1onbld \
65 check_rtime.1onbld \
66 cstyle.1onbld \
67 find_elf.1onbld \
68 git-pbchk.1onbld \
69 hdrchk.1onbld \
70 interface_check.1onbld \
71 interface_cmp.1onbld \
72 mapfilechk.1onbld \
73 wsdiff.1onbld
75 MAN1ONBLDLINKS= \
76 git-nits.1onbld
78 ETCFILES= \
79 hgstyle \
80 its.conf \
81 its.reg
83 EXCEPTFILES= \
84 check_rtime \
85 interface_check \
86 interface_cmp
88 CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES)
90 include ../Makefile.tools
92 ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
93 ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
95 $(ROOTONBLDETCFILES) := FILEMODE= 644
96 $(ROOTONBLDEXCEPTFILES) := FILEMODE= 644
97 $(ROOTONBLDPERLMODULES) := FILEMODE= 644
98 $(ROOTONBLDMAKEFILES) := FILEMODE= 644
99 $(ROOTONBLDMAN1ONBLDFILES) := FILEMODE= 644
101 .KEEP_STATE:
103 all: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
104 $(MAN1ONBLDFILES)
106 $(ROOTONBLDBIN)/git-nits:
107 $(RM) $(ROOTONBLDBIN)/git-nits
108 $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
110 $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
111 $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
112 $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
114 install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
115 $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \
116 $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES) \
117 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES) \
118 $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
120 clean:
121 $(RM) $(CLEANFILES)
123 bldenv.1onbld: bldenv
124 $(RM) "$@"
125 (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
126 sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
127 -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \
128 -e 's/(1)/(1ONBLD)/' > "$@"
130 include ../Makefile.targ