improve dependency handling, fix some package makefile bugs
[openwrt.git] / package / nvram / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=nvram
6 PKG_RELEASE:=1
7
8 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
9
10 include $(TOPDIR)/package/rules.mk
11
12 define Package/nvram
13 SECTION:=base
14 DEPENDS:=@LINUX_2_4_BRCM
15 TITLE:=Broadcom config utility
16 DESCRIPTION:=control utility for broadcom's 'nvram' config area
17 endef
18
19 define Build/Prepare
20 mkdir -p $(PKG_BUILD_DIR)
21 $(CP) ./src/* $(PKG_BUILD_DIR)
22 endef
23
24 define Package/nvram/install
25 install -d -m0755 $(1)/usr/lib
26 install -d -m0755 $(1)/usr/sbin
27 $(CP) $(PKG_BUILD_DIR)/*.so $(1)/usr/lib
28 install -m0755 $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin
29 endef
30
31 compile-targets: install-dev
32 install-dev: $(PKG_BUILD_DIR)/.built
33 mkdir -p $(STAGING_DIR)/usr/lib
34 $(CP) $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib
35
36
This page took 0.044844 seconds and 5 git commands to generate.