Makefile 971 B

1234567891011121314151617181920212223242526272829303132333435
  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. PKG_NAME:=automake
  9. PKG_VERSION:=1.11.1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@GNU/automake
  12. PKG_MD5SUM:=c2972c4d9b3e29c03d5f2af86249876f
  13. include $(INCLUDE_DIR)/host-build.mk
  14. HOST_CONFIGURE_ARGS += --datarootdir=$(STAGING_DIR_HOST)/share
  15. define Host/Install
  16. $(MAKE) -C $(HOST_BUILD_DIR) install
  17. mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
  18. $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
  19. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
  20. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.10
  21. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11
  22. ln -sf aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.11.1
  23. endef
  24. define Host/Clean
  25. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  26. $(call Host/Clean/Default)
  27. endef
  28. $(eval $(call HostBuild))