tools: clean up Makefiles / make ccache work
[openwrt/staging/yousong.git] / 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 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=automake
10 PKG_VERSION:=1.11.1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=@GNU/automake
14 PKG_MD5SUM:=c2972c4d9b3e29c03d5f2af86249876f
15
16 include $(INCLUDE_DIR)/host-build.mk
17
18 HOST_CONFIGURE_ARGS += --datarootdir=$(STAGING_DIR_HOST)/share
19
20 define Host/Install
21 $(MAKE) -C $(HOST_BUILD_DIR) install
22 mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
23 $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
24 ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
25 ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.10
26 ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11
27 ln -sf $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11.1
28 endef
29
30 define Host/Clean
31 -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
32 $(call Host/Clean/Default)
33 endef
34
35 $(eval $(call HostBuild))