Makefile 971 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.9.6
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@GNU/automake
  12. PKG_MD5SUM:=c11b8100bb311492d8220378fd8bf9e0
  13. include $(INCLUDE_DIR)/host-build.mk
  14. define Build/Configure
  15. $(call Build/Configure/Default,\
  16. --datarootdir=$(STAGING_DIR_HOST)/share \
  17. )
  18. endef
  19. define Build/Compile
  20. $(MAKE) -C $(PKG_BUILD_DIR)
  21. endef
  22. define Build/Install
  23. $(MAKE) -C $(PKG_BUILD_DIR) install
  24. mv $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal.real
  25. $(INSTALL_BIN) ./files/aclocal $(STAGING_DIR_HOST)/bin
  26. ln -f $(STAGING_DIR_HOST)/bin/aclocal $(STAGING_DIR_HOST)/bin/aclocal-1.9
  27. endef
  28. define Build/Clean
  29. $(MAKE) -C $(PKG_BUILD_DIR) uninstall
  30. $(MAKE) -C $(PKG_BUILD_DIR) clean
  31. $(call Build/Clean/Default)
  32. endef
  33. $(eval $(call HostBuild))