disable non-essential packages by default if DEVELOPER is unset on make menuconfig
[openwrt.git] / openwrt / package / rules.mk
1 ifneq ($(strip $(PKG_SOURCE)),)
2 $(DL_DIR)/$(PKG_SOURCE):
3 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
4 endif
5
6 ifneq ($(strip $(PKG_CAT)),)
7 $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)
8 rm -rf $(PKG_BUILD_DIR)
9 $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
10 if [ -d ./patches ]; then \
11 $(PATCH) $(PKG_BUILD_DIR) ./patches ; \
12 fi
13 touch $(PKG_BUILD_DIR)/.prepared
14 endif
15
16 all: compile
17
18 source: $(DL_DIR)/$(PKG_SOURCE)
19 prepare: $(PKG_BUILD_DIR)/.prepared
20 compile: $(COMPILE_TARGETS)
21 install: $(INSTALL_TARGETS)
22
23 clean: $(CLEAN_TARGETS)
24 rm -rf $(PKG_FILES) $(PKG_BUILD_DIR)
25
26 .PHONY: all source prepare compile install clean
This page took 0.046633 seconds and 5 git commands to generate.