summaryrefslogtreecommitdiff
path: root/ubi-utils/Makefile
diff options
context:
space:
mode:
authorFrank Haverkamp <haver@vnet.ibm.com>2008-01-07 14:05:00 +0100
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-01-15 12:47:15 +0200
commit0513f96bfb562cfa4202f890e54a8ab29e03faf1 (patch)
tree80d8719bfb68f21e3ff29c204707eb08707faf28 /ubi-utils/Makefile
parent50e2cd3f3433c42b1c4104430692acc6bc450646 (diff)
ubi-utils: libubi.a was always regenerated due to bug in Makefile
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>
Diffstat (limited to 'ubi-utils/Makefile')
-rw-r--r--ubi-utils/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile
index 9fd862d..933a843 100644
--- a/ubi-utils/Makefile
+++ b/ubi-utils/Makefile
@@ -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 $@ $^