Added support for : save-password( --enable-password-save), smaller executable (...
[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 SDK_NAME:=OpenWrt-SDK-$(PKG_OS)-$(PKG_CPU)-$(PKG_RELEASE)
10
11 SDK_BUILD_DIR:=$(BUILD_DIR)/$(SDK_NAME)
12
13 all: compile
14
15 $(BIN_DIR)/$(SDK_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 $(SDK_BUILD_DIR)
22 mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/examples $(SDK_BUILD_DIR)/package
23 $(CP) $(STAGING_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(SDK_BUILD_DIR)/
24 $(CP) $(TOPDIR)/package/strace $(TOPDIR)/package/iproute2 $(SDK_BUILD_DIR)/examples
25 $(CP) $(TOPDIR)/rules.mk $(SDK_BUILD_DIR)/
26 $(CP) ./files/Makefile.sdk $(SDK_BUILD_DIR)/Makefile
27 $(CP) ./files/README.SDK $(SDK_BUILD_DIR)/
28 $(CP) ./files/depend.mk $(SDK_BUILD_DIR)/package/
29 $(CP) $(TOPDIR)/package/rules.mk $(SDK_BUILD_DIR)/package/
30 egrep '^BR2_(ARCH|WGET|STAGING|JLEVEL|LARGEFILE|TARGET_OPT)' $(TOPDIR)/.config > $(SDK_BUILD_DIR)/.config
31 find $(SDK_BUILD_DIR) -name .svn | xargs rm -rf
32 find $(SDK_BUILD_DIR) -name CVS | xargs rm -rf
33 (cd $(BUILD_DIR); \
34 tar cfj $@ $(SDK_NAME); \
35 )
36
37 source:
38 prepare:
39 compile: $(BIN_DIR)/$(SDK_NAME).tar.bz2
40 install:
41
42 clean:
43 rm -rf $(SDK_BUILD_DIR) $(BIN_DIR)/$(SDK_NAME).tar.bz2
This page took 0.042841 seconds and 5 git commands to generate.