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 * Copyright 1994 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25 /*
26 * @(#)nse.cc 1.15 06/12/12
27 */
28
29 #pragma ident "@(#)nse.cc 1.15 06/12/12"
30
31 #ifdef NSE
32
33 /*
34 * Included files
35 */
36 #include <mk/defs.h>
37 #include <mksh/macro.h> /* expand_value() */
38 #include <mksh/misc.h> /* get_prop() */
39
40 /*
41 * This file does some extra checking on behalf of the NSE.
42 * It does some stuff that is analogous to lint in that it
43 * looks for things which may be legal but that give the NSE
44 * trouble. Currently it looks for:
45 * 1) recursion by cd'ing to a directory specified by a
46 * make variable that is defined from the shell environment.
47 * 2) recursion by cd'ing to a directory specified by a
48 * make variable that has backquotes in it.
49 * 3) recursion to another makefile in the same directory.
|
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 * Copyright 1994 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26 #ifdef NSE
27
28 /*
29 * Included files
30 */
31 #include <mk/defs.h>
32 #include <mksh/macro.h> /* expand_value() */
33 #include <mksh/misc.h> /* get_prop() */
34
35 /*
36 * This file does some extra checking on behalf of the NSE.
37 * It does some stuff that is analogous to lint in that it
38 * looks for things which may be legal but that give the NSE
39 * trouble. Currently it looks for:
40 * 1) recursion by cd'ing to a directory specified by a
41 * make variable that is defined from the shell environment.
42 * 2) recursion by cd'ing to a directory specified by a
43 * make variable that has backquotes in it.
44 * 3) recursion to another makefile in the same directory.
|