]> www.infradead.org Git - mtd-utils.git/commitdiff
ubi-utils: build utils from top dir
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 29 Aug 2007 14:28:08 +0000 (17:28 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 29 Aug 2007 14:34:18 +0000 (17:34 +0300)
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Makefile

index 679dc7edcf83b22703494905838a821eb1dbaa5a..111bb6a503a742f987ac5ec121d1452c0fc4147b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,7 @@ $(BUILDDIR)/%.o: %.c
 .SUFFIXES:
 
 all: $(TARGETS)
+       make -C $(BUILDDIR)/ubi-utils
 
 IGNORE=${wildcard $(BUILDDIR)/.*.c.dep}
 -include ${IGNORE}
@@ -50,6 +51,7 @@ IGNORE=${wildcard $(BUILDDIR)/.*.c.dep}
 clean:
        rm -f $(BUILDDIR)/*.o $(TARGETS) $(BUILDDIR)/.*.c.dep $(SYMLINKS)
        if [ "$(BUILDDIR)x" != ".x" ]; then rm -rf $(BUILDDIR); fi
+       make -C $(BUILDDIR)/ubi-utils clean
 
 $(SYMLINKS):
        ln -sf ../fs/jffs2/$@ $@