diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-03-30 20:29:07 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-03-30 20:29:07 +0100 |
commit | 06688245b53fd72344b907bf5eab282eff769a7c (patch) | |
tree | e26f2eeff897a852f62fca70fc77c3a022d5187c /mk/gmake.mk | |
parent | 7f01632ac8753c1a4efcce2abe27b4de65e9a0fb (diff) | |
download | embtoolkit-06688245b53fd72344b907bf5eab282eff769a7c.tar.gz embtoolkit-06688245b53fd72344b907bf5eab282eff769a7c.tar.bz2 embtoolkit-06688245b53fd72344b907bf5eab282eff769a7c.tar.xz |
Toolchain: add GNU make 3.81 and build it when FreeBSD is host development machine
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/gmake.mk')
-rw-r--r-- | mk/gmake.mk | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/mk/gmake.mk b/mk/gmake.mk new file mode 100644 index 0000000..304a81a --- /dev/null +++ b/mk/gmake.mk @@ -0,0 +1,42 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2013 Abdoulaye Walsimou GAYE. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +################################################################################ +# +# \file gmake.mk +# \brief gmake.mk of Embtoolkit. +# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org> +# \date March 2013 +################################################################################ + +GMAKE_NAME := gmake +GMAKE_VERSION := $(call embtk_get_pkgversion,gmake) +GMAKE_SITE := http://ftp.gnu.org/gnu/make +GMAKE_PACKAGE := make-$(GMAKE_VERSION).tar.bz2 +GMAKE_SRC_DIR := $(embtk_toolsb)/make-$(GMAKE_VERSION) +GMAKE_BUILD_DIR := $(embtk_toolsb)/make-$(GMAKE_VERSION) + +define embtk_install_gmake + $(call __embtk_install_hostpkg,gmake) +endef + +define embtk_postinstall_gmake + if [ ! -e $(GMAKE_BUILD_DIR)/.gmake.embtk.postinstalled ]; then \ + cd $(embtk_htools)/usr/bin; mv make gmake; \ + touch $(GMAKE_BUILD_DIR)/.gmake.embtk.postinstalled; \ + fi +endef |