Add initial version of the new Image Builder
[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 linux-install: $(BIN_DIR)
16 image_install: linux-install
17
18 IMAGE_DIR:=linux/$(BOARD)-$(KERNEL)/image
19
20 download: $(patsubst %,%-download,$(TARGETS-y))
21 prepare: linux-prepare
22 compile: linux-compile image_compile
23 install: image_clean linux-install sdk_install image_install imagebuilder_install
24 clean: linux-clean sdk-clean imagebuilder-clean image_clean
25
26 prereq: FORCE
27 $(MAKE) -C linux/$(BOARD)-$(KERNEL) prereq
28 $(MAKE) -C $(IMAGE_DIR) prereq
29
30 sdk_install: FORCE
31 $(MAKE) -C sdk install
32
33 image_clean: FORCE
34 $(MAKE) -C $(IMAGE_DIR) clean
35 rm -f $(BIN_DIR)/openwrt-*
36
37 image_compile: FORCE
38 $(MAKE) -C $(IMAGE_DIR) compile
39
40 image_install: image_compile
41 $(MAKE) -C $(IMAGE_DIR) install
42
43 imagebuilder_install: image_install
44 $(MAKE) -C imagebuilder install
45
46 %-clean: FORCE
47 $(MAKE) -C $(patsubst %-clean,%,$@) clean
48 %-download: FORCE
49 $(MAKE) -C $(patsubst %-download,%,$@) download
50 %-prepare: FORCE
51 $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
52 %-compile: %-prepare
53 $(MAKE) -C $(patsubst %-compile,%,$@) compile
54 %-install: %-compile
55 $(MAKE) -C $(patsubst %-install,%,$@) install
56
This page took 0.039456 seconds and 5 git commands to generate.