move target/linux/image to target/image
[openwrt.git] / target / Makefile
1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/target.mk
3
4 all: install
5
6 $(BIN_DIR):
7         mkdir -p $(BIN_DIR)
8
9 TARGETS-y := linux utils
10 TARGETS-$(CONFIG_SDK) += sdk
11
12 linux-compile: utils-install
13 linux-install: $(BIN_DIR)
14 sdk-compile: linux-install
15 image_install: linux-install
16
17 download: $(patsubst %,%-source,$(TARGETS-y))
18 prepare: linux-prepare
19 compile: linux-compile image_compile
20 install: image_clean $(patsubst %,%-install,$(TARGETS-y)) image_install
21 clean: $(patsubst %,%-clean,$(TARGETS-y)) image_clean
22
23 image_clean: FORCE
24         $(MAKE) -C image/$(BOARD) clean
25         rm -f $(BIN_DIR)/openwrt-*
26         
27 image_compile: FORCE
28         $(MAKE) -C image/$(BOARD) compile
29
30 image_install: image_compile
31         $(MAKE) -C image/$(BOARD) install
32
33 %-clean: FORCE
34         $(MAKE) -C $(patsubst %-clean,%,$@) clean
35 %-source: FORCE
36         $(MAKE) -C $(patsubst %-source,%,$@) source
37 %-prepare: FORCE
38         $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
39 %-compile: %-prepare
40         $(MAKE) -C $(patsubst %-compile,%,$@) compile
41 %-install: %-compile
42         $(MAKE) -C $(patsubst %-install,%,$@) install
43