| 1 | # $FreeWRT$
|
|---|
| 2 | #-
|
|---|
| 3 | # This file is part of the FreeWRT project. FreeWRT is copyrighted
|
|---|
| 4 | # material, please see the LICENCE file in the top-level directory
|
|---|
| 5 | # or at http://www.freewrt.org/license for details.
|
|---|
| 6 |
|
|---|
| 7 | include $(TOPDIR)/rules.mk
|
|---|
| 8 | include $(TOPDIR)/mk/targets.mk
|
|---|
| 9 |
|
|---|
| 10 | all: install
|
|---|
| 11 |
|
|---|
| 12 | $(BIN_DIR):
|
|---|
| 13 | mkdir -p $(BIN_DIR)
|
|---|
| 14 |
|
|---|
| 15 | linux-compile:
|
|---|
| 16 | linux-install: $(BIN_DIR)
|
|---|
| 17 |
|
|---|
| 18 | prepare: linux-prepare
|
|---|
| 19 | compile: linux-compile
|
|---|
| 20 | install: image_clean linux-install image_install
|
|---|
| 21 | clean: linux-clean image_clean
|
|---|
| 22 |
|
|---|
| 23 | image_clean:
|
|---|
| 24 | rm -f $(BIN_DIR)/freewrt-*
|
|---|
| 25 |
|
|---|
| 26 | image_install:
|
|---|
| 27 | $(MAKE) -C image/$(BOARD) install-prepare
|
|---|
| 28 | $(MAKE) -C image/$(BOARD) install
|
|---|
| 29 |
|
|---|
| 30 | %-clean:
|
|---|
| 31 | @$(TRACE) target/$(patsubst %-clean,%,$@)-clean
|
|---|
| 32 | $(MAKE) -C $(patsubst %-clean,%,$@) clean
|
|---|
| 33 | %-prepare:
|
|---|
| 34 | @$(TRACE) target/$(patsubst %-prepare,%,$@)-prepare
|
|---|
| 35 | $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
|
|---|
| 36 | %-compile: %-prepare
|
|---|
| 37 | @$(TRACE) target/$(patsubst %-compile,%,$@)-compile
|
|---|
| 38 | $(MAKE) -C $(patsubst %-compile,%,$@) compile
|
|---|
| 39 | %-rebuild:
|
|---|
| 40 | @$(TRACE) target/$(patsubst %-rebuild,%,$@)-rebuild
|
|---|
| 41 | $(MAKE) -C $(patsubst %-rebuild,%,$@) rebuild
|
|---|
| 42 | %-install: %-compile
|
|---|
| 43 | @$(TRACE) target/$(patsubst %-install,%,$@)-install
|
|---|
| 44 | $(MAKE) -C $(patsubst %-install,%,$@) install
|
|---|