Mercurial > mxe-octave
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 |
rev | line source |
---|---|
2990 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := build-flex | |
5 $(PKG)_IGNORE := | |
3596 | 6 $(PKG)_VERSION := 2.5.39 |
7 $(PKG)_CHECKSUM := 267794c709d5c50f2dcb48ff5d8dcbbfe40f953e | |
2990 | 8 $(PKG)_SUBDIR := flex-$($(PKG)_VERSION) |
9 $(PKG)_FILE := flex-$($(PKG)_VERSION).tar.bz2 | |
10 $(PKG)_URL := http://prdownloads.sourceforge.net/flex/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := | |
12 | |
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 | 17 endef |
18 | |
19 define $(PKG)_BUILD | |
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 | 23 $(MAKE) -C '$(1).build' -j '$(JOBS)' |
24 $(MAKE) -C '$(1).build' -j 1 install | |
25 endef |