suppress bug after compiling last package in kamikaze SDK.
authorFelix Fietkau <nbd@openwrt.org>
Sun, 9 Dec 2007 18:52:52 +0000 (18:52 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 9 Dec 2007 18:52:52 +0000 (18:52 +0000)
This patch corrects https://dev.openwrt.org/ticket/2508
An error was raised when no Config.in file was found in package/
Signed-off-by: Julien Pinon <julien.pinon@luceor.com>
SVN-Revision: 9692

target/sdk/files/Makefile

index ebd30bf..8b054b4 100644 (file)
@@ -74,9 +74,9 @@ world: FORCE
        $(MAKE) package/compile
        -( \
                cd package; \
-               find . -maxdepth 2 -name Config.in | \
-                       sed -e 's,/Config.in,,g' | \
-                       xargs -n1 $(MAKE) compile -C; \
+               for configfile in `find . -maxdepth 2 -name Config.in` ; do \
+                       $(MAKE) compile -C `dirname $$configfile` ; \
+               done \
        )
 
 clean: FORCE