Makefile 761 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # Copyright (C) 2010-2013 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:=mm-macros
  9. PKG_VERSION:=0.9.7
  10. PKG_SOURCE_URL:=http://ftp.gnome.org/pub/GNOME/sources/mm-common/0.9
  11. PKG_SOURCE:=mm-common-$(PKG_VERSION).tar.xz
  12. PKG_MD5SUM:=a8b7c11db81a72168bf38d88d97df686
  13. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/mm-common-$(PKG_VERSION)
  14. include $(INCLUDE_DIR)/host-build.mk
  15. define Host/Install
  16. $(INSTALL_DIR) $(STAGING_DIR_HOST)/share/aclocal
  17. $(INSTALL_DATA) $(HOST_BUILD_DIR)/macros/*.m4 $(STAGING_DIR_HOST)/share/aclocal/
  18. endef
  19. define Host/Clean
  20. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  21. $(call Host/Clean/Default)
  22. endef
  23. $(eval $(call HostBuild))