cleanup; replace .PHONY with FORCE; disable gdb by default
[openwrt-10.03/.git] / target / Makefile
index a14749fcaeb8e3960632b31166393d6bc0b721ba..709a2080a51d709881b0e65d8f4b288855a8364b 100644 (file)
@@ -8,30 +8,25 @@ $(BIN_DIR):
 linux-compile: utils-install lzma-install
 linux-install: $(BIN_DIR)
 
-prepare: 
+prepare: linux-prepare
 compile: linux-compile
 install: image_clean linux-install
 clean: linux-clean utils-clean lzma-clean image_clean
 
-image_clean:
+image_clean: FORCE
        rm -f $(BIN_DIR)/openwrt-*
 
-%-clean:
-       @$(TRACE) target/$(patsubst %-clean,%,$@)/clean
+%-clean: FORCE
        $(MAKE) -C $(patsubst %-clean,%,$@) clean
-%-prepare:
-       @$(TRACE) target/$(patsubst %-prepare,%,$@)/prepare
+%-prepare: FORCE
        $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
 %-compile: %-prepare
-       @$(TRACE) target/$(patsubst %-compile,%,$@)/compile
        $(MAKE) -C $(patsubst %-compile,%,$@) compile
-%-rebuild: 
-       @$(TRACE) target/$(patsubst %-rebuild,%,$@)/rebuild
+%-rebuild: FORCE
        $(MAKE) -C $(patsubst %-rebuild,%,$@) rebuild
 %-install: %-compile
-       @$(TRACE) target/$(patsubst %-install,%,$@)/install
        $(MAKE) -C $(patsubst %-install,%,$@) install
-linux-imagebuilder:
-       @$(TRACE) target/linux/imagebuilder
+linux-imagebuilder: FORCE
        $(MAKE) -C linux imagebuilder
 
+