Makefile.targ
author Jon Tibble <meths@btinternet.com>
Mon, 16 Jan 2012 15:05:33 +0000
changeset 572 75814d89f0d1
parent 459 2de11c040f7f
permissions -rw-r--r--
Added tag oi_151a_prestable0 for changeset adc489805699
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
405
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
     1
#
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
     2
# CDDL HEADER START
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
     3
#
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
     7
#
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    10
# See the License for the specific language governing permissions
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    11
# and limitations under the License.
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    12
#
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    18
#
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    19
# CDDL HEADER END
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    20
#
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    21
#
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    22
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    23
# Use is subject to license terms.
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    24
#
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    25
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    26
# the location of downloaded files
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    27
# rsync source can be provided in $(DOWNLOADS)
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    28
SOURCE_ARCHIVES = $(SRC)/downloads
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    29
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    30
SOURCE_ARCHIVE = $(SOURCE_ARCHIVES)/$(TARBALL)
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    31
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    32
$(SOURCE_ARCHIVES)/.archives:
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    33
	-mkdir $(SOURCE_ARCHIVES)
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    34
	touch $@
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    35
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    36
$(SOURCE_ARCHIVE): $(SOURCE_ARCHIVES)/.archives
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    37
	( if [ -f "$(DOWNLOADS)/$(TARBALL)" ]; then \
459
2de11c040f7f use 'cp' instead of 'rsync' because 'rsync' deadlocks on sparc platform
jenda
parents: 450
diff changeset
    38
		$(CP) $(DOWNLOADS)/$(TARBALL) $(SOURCE_ARCHIVES)/ ; \
405
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    39
	  else \
419
2570bde51cb2 6882039 Include BPG Georgian fonts
hnhn
parents: 405
diff changeset
    40
		cd $(SOURCE_ARCHIVES) && $(WGET) -nc $(SOURCE_URL) $(WGET_OPT); \
405
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    41
	  fi \
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    42
	)
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    43
	touch $@
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    44
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    45
$(VER)/.unpacked: $(SOURCE_ARCHIVE)
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    46
	-$(RM) -r $(VER)
450
13efd215ca04 6901701 Package Apparatus SIL fonts
hnhn
parents: 419
diff changeset
    47
	$(UNPACKARCHIVE) $(SOURCE_ARCHIVE) $(ORIG_VER) $(VER)
405
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    48
	touch $@
c601bc5ddd76 added archive downloads to one location
hnhn
parents:
diff changeset
    49