Root/tools/automake/Makefile

1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=automake
10PKG_VERSION:=1.11.1
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13PKG_SOURCE_URL:=@GNU/automake
14PKG_MD5SUM:=c2972c4d9b3e29c03d5f2af86249876f
15
16include $(INCLUDE_DIR)/host-build.mk
17
18define Host/Configure
19    $(call Host/Configure/Default,\
20        --datarootdir=$(STAGING_DIR_HOST)/share \
21    )
22endef
23
24define Host/Compile
25    $(MAKE) -C $(HOST_BUILD_DIR)
26endef
27
28define Host/Install
29    $(MAKE) -C $(HOST_BUILD_DIR) install
30    mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
31    $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
32    ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
33    ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.10
34    ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11
35    ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11.1
36endef
37
38define Host/Clean
39    -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
40    $(call Host/Clean/Default)
41endef
42
43$(eval $(call HostBuild))
44

Archive Download this file



interactive