Name

mk_unpack — Unpack archive

Synopsis

MODULES="... fetch ..."

mk_unpack ARCHIVE=archive DIR=dir

Options

ARCHIVE=archive

The target archive to unpack.

DIR=dir

The target directory to create by unpacking the archive.

FILES=files

An optional list of files, relative to dir, which will be created. Specifying this is optional, but it ensures that anything that depends on an unpacked file will depend on the archive being unpacked.

Description

Unpacks the archive archive to the create the directory dir. If the archive contains a single top-level directory, this directory will become dir. This is generally convenient for unpacking source tarballs to build, as by mk_chain_autotools. Otherwise, dir is created and the contents are placed within.

Sets result to a target which depends on the the output directory target and all file targets generated.