remove the ar531x-2.4 target, a 2.6 port will be added soon
[openwrt.git] / target / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/target.mk
9
10 all: install
11
12 $(BIN_DIR):
13 mkdir -p $(BIN_DIR)
14
15 TARGETS-y := linux
16 TARGETS-$(CONFIG_SDK) += sdk
17
18 linux-install: $(BIN_DIR)
19 image_install: linux-install
20
21 IMAGE_DIR:=linux/$(BOARD)-$(KERNEL)/image
22
23
24 download: $(patsubst %,%-download,$(TARGETS-y))
25 prepare: linux-prepare
26 compile: linux-compile image_compile
27 install: image_clean $(patsubst %,%-install,$(TARGETS-y)) image_install
28 clean: $(patsubst %,%-clean,$(TARGETS-y)) image_clean
29
30 prereq: FORCE
31 $(MAKE) -C linux/$(BOARD)-$(KERNEL) prereq
32 $(MAKE) -C $(IMAGE_DIR) prereq
33
34 image_clean: FORCE
35 $(MAKE) -C $(IMAGE_DIR) clean
36 rm -f $(BIN_DIR)/openwrt-*
37
38 image_compile: FORCE
39 $(MAKE) -C $(IMAGE_DIR) compile
40
41 image_install: image_compile
42 $(MAKE) -C $(IMAGE_DIR) install
43
44 %-clean: FORCE
45 $(MAKE) -C $(patsubst %-clean,%,$@) clean
46 %-download: FORCE
47 $(MAKE) -C $(patsubst %-download,%,$@) download
48 %-prepare: FORCE
49 $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
50 %-compile: %-prepare
51 $(MAKE) -C $(patsubst %-compile,%,$@) compile
52 %-install: %-compile
53 $(MAKE) -C $(patsubst %-install,%,$@) install
54
This page took 0.045725 seconds and 5 git commands to generate.