cosmetics
[openwrt.git] / openwrt / package / sdk / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_OS:=$(shell uname -s)
6 PKG_CPU:=$(shell uname -m)
7
8 PKG_RELEASE:=1
9 PKG_NAME:=OpenWrt-SDK-$(PKG_OS)-$(PKG_CPU)-$(PKG_RELEASE)
10
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
12
13 all: compile
14
15 $(BIN_DIR)/$(PKG_NAME).tar.bz2:
16 (cd $(STAGING_DIR); \
17 rm -rf info man share; \
18 cd usr; \
19 rm -rf doc info man share; \
20 )
21 rm -rf $(PKG_BUILD_DIR)
22 mkdir -p $(PKG_BUILD_DIR)/dl $(PKG_BUILD_DIR)/examples $(PKG_BUILD_DIR)/package
23 cp -a $(STAGING_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(PKG_BUILD_DIR)/
24 cp -a $(TOPDIR)/package/strace $(TOPDIR)/package/iproute2 $(PKG_BUILD_DIR)/examples
25 cp $(TOPDIR)/rules.mk $(PKG_BUILD_DIR)/
26 cp ./files/Makefile.sdk $(PKG_BUILD_DIR)/Makefile
27 cp ./files/README.SDK $(PKG_BUILD_DIR)/
28 cp ./files/depend.mk $(PKG_BUILD_DIR)/package/
29 egrep '^BR2_(ARCH|WGET|STAGING|JLEVEL|LARGEFILE|TARGET_OPT)' $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
30 find $(PKG_BUILD_DIR) -name CVS | xargs rm -rf
31 (cd $(BUILD_DIR); \
32 tar cfj $@ $(PKG_NAME); \
33 )
34
35 source:
36 prepare:
37 compile: $(BIN_DIR)/$(PKG_NAME).tar.bz2
38 install:
39
40 clean:
41 rm -rf $(PKG_BUILD_DIR)
This page took 0.044994 seconds and 5 git commands to generate.