usr/src/tools/onbld/Makefile
author Mark J. Nelson <Mark.J.Nelson@Sun.COM>
Sat, 20 Jun 2009 12:08:08 -0600
changeset 9919 939a08fcdd44
parent 7078 935563142864
child 11838 32bb5d254240
permissions -rw-r--r--
6849573 usr/src/tools license files should live under usr/src/tools
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7078
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
     1
#
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
     2
# CDDL HEADER START
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
     3
#
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
     7
#
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    10
# See the License for the specific language governing permissions
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    11
# and limitations under the License.
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    12
#
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    18
#
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    19
# CDDL HEADER END
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    20
#
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    21
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    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
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    24
# Use is subject to license terms.
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    25
#
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    26
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    27
include $(SRC)/Makefile.master
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    28
include ../Makefile.tools
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    29
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    30
SUBDIRS= \
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    31
	Checks	\
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    32
	hgext	\
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    33
	Scm
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    34
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    35
PYSRCS= \
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    36
	__init__.py
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    37
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    38
PYOBJS= $(PYSRCS:%.py=%.pyc)
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    39
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    40
PYFILES= $(PYSRCS) $(PYOBJS)
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    41
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    42
all := TARGET = all
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    43
install := TARGET = install
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    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
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    46
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    47
ROOTONBLDBASEFILES=	$(PYFILES:%=$(ROOTONBLDLIBPY)/onbld/%)
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    48
$(ROOTONBLDBASEFILES) := FILEMODE = 0444
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    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
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    52
.KEEP_STATE:
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    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
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    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
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    59
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
    60
THIRDPARTYLICENSE: $(SRC)/pkgdefs/license_files/lic_GPLv2
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
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    63
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    64
$(ROOTONBLDLIBPY)/onbld/%: %
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    65
	$(INS.pyfile)
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    66
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    67
$(SUBDIRS): FRC
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    68
	@cd $@; pwd; $(MAKE) $(TARGET)
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    69
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    70
FRC:
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    71
935563142864 6538468 add Mercurial support to ON developer tools
mjnelson
parents:
diff changeset
    72
include ../Makefile.targ