Makefile 633 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # Copyright (C) 2008 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:=m4
  9. PKG_VERSION:=1.4.15
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
  12. PKG_MD5SUM:=5649a2e593b6c639deae9e72ede777dd
  13. PKG_CAT:=zcat
  14. include $(INCLUDE_DIR)/host-build.mk
  15. define Host/Compile
  16. $(MAKE) -C $(HOST_BUILD_DIR)
  17. endef
  18. define Host/Install
  19. $(MAKE) -C $(HOST_BUILD_DIR) install
  20. endef
  21. define Host/Clean
  22. -$(MAKE) -C $(HOST_BUILD_DIR) uninstall
  23. $(call Host/Clean/Default)
  24. endef
  25. $(eval $(call HostBuild))