annotate src/build-flex.mk @ 4545:0e56fe2d2ef5

Makefile.in: add update-build-tools target * Makefile.in: add update-build-tools target * src/build-autoconf.mk, src/build-automake.mk, src/build-bison.mk, src/build-gawk.mk, src/build-gcc.mk, src/build-gettext.mk, src/build-gperf.mk, src/build-m4.mk, src/build-texinfo.mk, src/build-libtool.mk : update PKG_UPDATE for getting latest version from gnu.org * src/build-cmake.mk, src/build-flex.mk, src/build-lzip.mk, src/build-pkg-config.mk, src/pkg-config.mk, src/build-scons.mk : add implemented PKG_UPDATE macro
author John Donoghue <john.donoghue@ieee.org>
date Thu, 23 Nov 2017 12:05:29 -0500
parents 7ec984651a4f
children e475dae96add
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2990
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := build-flex
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
3596
7ec984651a4f Update build-flex, build-scons versions
John Donoghue
parents: 3480
diff changeset
6 $(PKG)_VERSION := 2.5.39
7ec984651a4f Update build-flex, build-scons versions
John Donoghue
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := 267794c709d5c50f2dcb48ff5d8dcbbfe40f953e
2990
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := flex-$($(PKG)_VERSION)
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_FILE := flex-$($(PKG)_VERSION).tar.bz2
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_URL := http://prdownloads.sourceforge.net/flex/$($(PKG)_FILE)
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 $(PKG)_DEPS :=
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 define $(PKG)_UPDATE
4545
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3596
diff changeset
14 $(WGET) -q -O- 'https://github.com/westes/flex/tags' | \
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3596
diff changeset
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -V | \
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3596
diff changeset
16 tail -1
2990
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 endef
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 define $(PKG)_BUILD
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 mkdir '$(1).build'
3032
080a2acf178f remove some debugging code accidentally left in build-flex.mk
John W. Eaton <jwe@octave.org>
parents: 3029
diff changeset
21 cd '$(1).build' && '$(1)/configure' \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2990
diff changeset
22 --prefix='$(BUILD_TOOLS_PREFIX)'
2990
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 $(MAKE) -C '$(1).build' -j '$(JOBS)'
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 $(MAKE) -C '$(1).build' -j 1 install
5329f4891fb7 build our own bison and flex
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 endef