fix pppoatm init script
[openwrt.git] / target / Makefile
1 include $(TOPDIR)/rules.mk
2
3 all: install
4
5 $(BIN_DIR):
6         mkdir -p $(BIN_DIR)
7
8 linux-compile: utils-install lzma-install
9 linux-install: $(BIN_DIR)
10
11 prepare: 
12 compile: linux-compile
13 install: image_clean linux-install
14 clean: linux-clean utils-clean lzma-clean image_clean
15
16 image_clean:
17         rm -f $(BIN_DIR)/openwrt-*
18
19 %-clean:
20         $(MAKE) -C $(patsubst %-clean,%,$@) clean
21 %-prepare:
22         $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
23 %-compile: %-prepare
24         $(MAKE) -C $(patsubst %-compile,%,$@) compile
25 %-rebuild: 
26         $(MAKE) -C $(patsubst %-rebuild,%,$@) rebuild
27 %-install: %-compile
28         $(MAKE) -C $(patsubst %-install,%,$@) install
29 linux-imagebuilder:
30         $(MAKE) -C linux imagebuilder
31