pkgmaps/Makefile
author Alasdair Lumsden <alasdairrr@gmail.com>
Mon, 15 Aug 2011 19:04:02 +0000
branchoi_151a
changeset 569 660c4109f92b
parent 162 e228fc0931fa
permissions -rw-r--r--
Creating branch oi_151a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     1
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     2
# CDDL HEADER START
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     3
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").  
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     7
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     8
# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    10
# See the License for the specific language governing permissions
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    11
# and limitations under the License.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    12
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    14
# file and include the License file at src/OPENSOLARIS.LICENSE.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    18
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    19
# CDDL HEADER END
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    20
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    21
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    22
# Use is subject to license terms.
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    23
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    24
# ident  "@(#)Makefile 1.0 10/03/07 SMI"
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    25
#
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    26
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    27
include $(SRC)/Makefile.master
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    28
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    29
SUBDIRS = 
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    30
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    31
ALL_LOCALES.tar= $(ALL_LOCALES:%=%.tar)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    32
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    33
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    34
all:=		TARGET= all
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    35
install:=	TARGET= install
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    36
clean:=		TARGET= clean
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    37
links:= 	TARGET= links
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    38
$(ALL_LOCALES):= TARGET= links 
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    39
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    40
.KEEP_STATE:
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    41
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    42
all: link 
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    43
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    44
install:
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    45
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    46
clean clobber: 
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    47
	$(RM) $(DEST)/*.bz2
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    48
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    49
link: 
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    50
	$(RM) -r $(FILEROOT)/lib $(FILEROOT)/openwin
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    51
	$(LN) -s $(FILEROOT)/usr/lib $(FILEROOT)/lib
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    52
	$(LN) -s $(FILEROOT)/usr/openwin $(FILEROOT)/openwin
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    53
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    54
links: 
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    55
	 $(SRC)/tools/create_links.sh all $(FILEROOT)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    56
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    57
linkclean:
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    58
	for i in `find $(FILEROOT) -type l`; do\
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    59
		echo "removing $$i"; \
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    60
		rm $$i; \
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    61
	done
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    62
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    63
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    64
tarball:  $(DEST)
12
eb55d85bc649 remove '-cf' from $(TAR), add definition of $(WGET), $(XKBCOMP_XSUN) and $(XKBCOMP_XORG)
Jan Lana <jan.lana@sun.com>
parents: 0
diff changeset
    65
	cd $(DEST); $(TAR) cvf all_locales.tar -C $(FILEROOT) usr/; \
162
e228fc0931fa add $(BZIP2) to Makefile.master
jenda
parents: 12
diff changeset
    66
	$(RM) all_locales.tar.bz2; $(BZIP2) all_locales.tar
0
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    67
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    68
tarballs: $(DEST)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    69
	for i in $(ALL_LOCALES); do \
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    70
		$(SRC)/tools/create_tarballs.sh $$i $(FILEROOT); \
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    71
		mv $(FILEROOT)/$$i.tar.bz2 $(DEST); \
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    72
	done
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    73
	mv $(FILEROOT)/common.tar.bz2 $(DEST)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    74
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    75
$(DEST):
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    76
	$(INSDIR) $(DEST)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    77
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    78
$(ALL_LOCALES): 
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    79
	$(SRC)/tools/create_tarballs.sh $@ $(FILEROOT)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    80
	mv $(FILEROOT)/[email protected] $(DEST)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    81
	cp $(FILEROOT)/common.tar.bz2 $(DEST)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    82
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    83
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    84
#%.tar: %
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    85
#	$(SRC)/tools/create_tarballs.sh $< $(FILEROOT)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    86
#	mv $(FILEROOT)/$<.tar.bz2 $(DEST)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    87
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    88
$(SUBDIRS): FRC
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    89
	-@cd $@; pwd; $(MAKE) $(TARGET)
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    90
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    91
542988ea726d initial version of Nevada G11N repository
simford
parents:
diff changeset
    92
FRC: