annotate src/build-automake.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 7145a94e4f4e
children ff92c0dc6aeb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2971
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := build-automake
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 29d7832b148e2157e03ad0d3620fbb7f5a13bc21
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_SUBDIR := automake-$($(PKG)_VERSION)
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_FILE := automake-$($(PKG)_VERSION).tar.gz
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/automake/$($(PKG)_FILE)
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_DEPS :=
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 define $(PKG)_UPDATE
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 echo $($(PKG)_VERSION)
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 endef
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 define $(PKG)_BUILD
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 mkdir '$(1).build'
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 cd '$(1).build' && '$(1)/configure' \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2971
diff changeset
20 --prefix='$(BUILD_TOOLS_PREFIX)'
2971
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 $(MAKE) -C '$(1).build' -j '$(JOBS)'
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 $(MAKE) -C '$(1).build' -j 1 install
7145a94e4f4e build autoconf, automake, libtool, and cmake instead of expecting them to exist
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 endef