Did not see r12158, do not duplicate this patch
[openwrt/svn-archive/archive.git] / devel / make / Makefile
1 #
2 # Copyright (C) 2007 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:=make
10 PKG_VERSION:=3.81
11 PKG_RELEASE:=1
12 PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/make/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_MD5SUM:=354853e0b2da90c527e35aabb8d6f1e6
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/make
19 SECTION:=devel
20 CATEGORY:=Development
21 TITLE:=make
22 endef
23
24 define Package/make/description
25 The Make package contains a program for compiling packages
26 endef
27
28 define Build/Configure
29 (cd $(PKG_BUILD_DIR)/; \
30 $(TARGET_CONFIGURE_OPTS) \
31 $(CONFIGURE_VARS) \
32 $(CONFIGURE_CMD) \
33 $(CONFIGURE_ARGS_XTRA) \
34 $(CONFIGURE_ARGS) \
35 );
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) all
40 $(MAKE) -C $(PKG_BUILD_DIR) install DESTDIR=$(PKG_INSTALL_DIR)
41 endef
42
43 define Package/make/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/make $(1)/usr/bin/
46 endef
47
48 $(eval $(call BuildPackage,make))