author | Liane Praza <Liane.Praza@Sun.COM> |
Tue, 02 Mar 2010 19:29:26 -0700 | |
changeset 11838 | 32bb5d254240 |
parent 9919 | 939a08fcdd44 |
child 12216 | 5167f302c8cf |
permissions | -rw-r--r-- |
7078 | 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 |
# |
|
9919
939a08fcdd44
6849573 usr/src/tools license files should live under usr/src/tools
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents:
7078
diff
changeset
|
23 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
7078 | 24 |
# Use is subject to license terms. |
25 |
# |
|
26 |
||
27 |
include $(SRC)/Makefile.master |
|
28 |
include ../Makefile.tools |
|
29 |
||
30 |
SUBDIRS= \ |
|
31 |
Checks \ |
|
32 |
hgext \ |
|
33 |
Scm |
|
34 |
||
35 |
PYSRCS= \ |
|
36 |
__init__.py |
|
37 |
||
38 |
PYOBJS= $(PYSRCS:%.py=%.pyc) |
|
39 |
||
40 |
PYFILES= $(PYSRCS) $(PYOBJS) |
|
41 |
||
42 |
all := TARGET = all |
|
43 |
install := TARGET = install |
|
44 |
clean := TARGET = clean |
|
9919
939a08fcdd44
6849573 usr/src/tools license files should live under usr/src/tools
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents:
7078
diff
changeset
|
45 |
clobber := TARGET = clobber |
7078 | 46 |
|
47 |
ROOTONBLDBASEFILES= $(PYFILES:%=$(ROOTONBLDLIBPY)/onbld/%) |
|
48 |
$(ROOTONBLDBASEFILES) := FILEMODE = 0444 |
|
49 |
||
9919
939a08fcdd44
6849573 usr/src/tools license files should live under usr/src/tools
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents:
7078
diff
changeset
|
50 |
CLOBBERFILES += THIRDPARTYLICENSE |
939a08fcdd44
6849573 usr/src/tools license files should live under usr/src/tools
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents:
7078
diff
changeset
|
51 |
|
7078 | 52 |
.KEEP_STATE: |
53 |
||
9919
939a08fcdd44
6849573 usr/src/tools license files should live under usr/src/tools
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents:
7078
diff
changeset
|
54 |
all: $(PYOBJS) $(SUBDIRS) THIRDPARTYLICENSE |
939a08fcdd44
6849573 usr/src/tools license files should live under usr/src/tools
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents:
7078
diff
changeset
|
55 |
|
939a08fcdd44
6849573 usr/src/tools license files should live under usr/src/tools
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents:
7078
diff
changeset
|
56 |
install: all $(ROOTONBLDBASEFILES) $(SUBDIRS) |
7078 | 57 |
|
9919
939a08fcdd44
6849573 usr/src/tools license files should live under usr/src/tools
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents:
7078
diff
changeset
|
58 |
clean clobber: $(SUBDIRS) |
7078 | 59 |
|
11838
32bb5d254240
PSARC 2010/067 Interim modernization updates
Liane Praza <Liane.Praza@Sun.COM>
parents:
9919
diff
changeset
|
60 |
THIRDPARTYLICENSE: $(SRC)/pkg/license_files/lic_GPLv2 |
9919
939a08fcdd44
6849573 usr/src/tools license files should live under usr/src/tools
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents:
7078
diff
changeset
|
61 |
$(RM) $@ |
939a08fcdd44
6849573 usr/src/tools license files should live under usr/src/tools
Mark J. Nelson <Mark.J.Nelson@Sun.COM>
parents:
7078
diff
changeset
|
62 |
$(CAT) $? > $@ |
7078 | 63 |
|
64 |
$(ROOTONBLDLIBPY)/onbld/%: % |
|
65 |
$(INS.pyfile) |
|
66 |
||
67 |
$(SUBDIRS): FRC |
|
68 |
@cd $@; pwd; $(MAKE) $(TARGET) |
|
69 |
||
70 |
FRC: |
|
71 |
||
72 |
include ../Makefile.targ |