0a1434472a8f49a53e986353d697146d8f83f797
[openwrt.git] / target / Makefile
1 include $(TOPDIR)/rules.mk
2
3 all: install
4
5 $(BIN_DIR):
6 mkdir -p $(BIN_DIR)
7
8 TARGETS-y := linux utils
9 TARGETS-$(CONFIG_SDK) += sdk
10
11 linux-compile: utils-install
12 linux-install: $(BIN_DIR)
13 sdk-compile: linux-install
14
15 download: $(patsubst %,%-source,$(TARGETS-y))
16 prepare: linux-prepare
17 compile: linux-compile
18 install: image_clean $(patsubst %,%-install,$(TARGETS-y))
19 clean: $(patsubst %,%-clean,$(TARGETS-y)) image_clean
20
21 image_clean: FORCE
22 rm -f $(BIN_DIR)/openwrt-*
23
24 %-clean: FORCE
25 $(MAKE) -C $(patsubst %-clean,%,$@) clean
26 %-source: FORCE
27 $(MAKE) -C $(patsubst %-source,%,$@) source
28 %-prepare: FORCE
29 $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
30 %-compile: %-prepare
31 $(MAKE) -C $(patsubst %-compile,%,$@) compile
32 %-install: %-compile
33 $(MAKE) -C $(patsubst %-install,%,$@) install
34
This page took 0.048716 seconds and 3 git commands to generate.