]> www.infradead.org Git - mtd-utils.git/commitdiff
ubi-utils: libubi.a was always regenerated due to bug in Makefile
authorFrank Haverkamp <haver@vnet.ibm.com>
Mon, 7 Jan 2008 13:05:00 +0000 (14:05 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 15 Jan 2008 10:47:15 +0000 (12:47 +0200)
The Makefile defined a target which was never produced. So libubi.a was
regenerated regardless any dependencies.

Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
ubi-utils/Makefile

index 9fd862d69b80b559a4047f38bb8efea86263d880..933a8435f086dc580047aee5f1b71be36f431d12 100644 (file)
@@ -26,7 +26,7 @@ vpath   %.c ./src
 %.o: %.c
        $(CC) $(CFLAGS) -g -c -o $@ $< -g -Wp,-MD,.$(shell basename $<).dep
 
-all: $(TARGETS) libubi
+all: $(TARGETS) libubi.a
 
 IGNORE=${wildcard .*.c.dep}
 -include ${IGNORE}
@@ -34,8 +34,8 @@ IGNORE=${wildcard .*.c.dep}
 clean:
        rm -rf *.o $(TARGETS) .*.c.dep libubi.a
 
-libubi: libubi.o
-       ar cr libubi.a libubi.o
+libubi.a: libubi.o
+       ar cr $@ $^
 
 ubidetach: ubidetach.o common.o libubi.o
        $(CC) $(LDFLAGS) -o $@ $^