chiark / gitweb /
fix dependency for make -j2
authorBrent Cook <busterbcook@yahoo.com>
Thu, 29 Dec 2005 02:42:38 +0000 (03:42 +0100)
committerKay Sievers <kay.sievers@suse.de>
Thu, 29 Dec 2005 02:42:38 +0000 (03:42 +0100)
Makefile

index f5c71a6f80d71ad0fe50a8e0242393799dac1ce4..5edc76f81a85e9ddcb3dc1b7592ee2c0bdf03c4f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -211,7 +211,7 @@ all: $(PROGRAMS) $(MAN_PAGES)
 .SUFFIXES:
 
 # build the objects
-%.o: %.c $(GEN_HEADERS)
+%.o: %.c $(HOST_PROGS) $(GEN_HEADERS)
        $(QUIET) $(CC) -c $(CFLAGS) $< -o $@
 
 # "Static Pattern Rule" to build all programs
@@ -255,6 +255,7 @@ ccdv: ccdv.c
 .SILENT: ccdv
 
 clean:
+       - rm -f $(HOST_PROGS)
        - find . \( -not -type d \) -and \( -name '*~' -o -name '*.[oas]' \) -type f -print0 | xargs -0rt rm -f
        - find -name "*.gcno" -print0 | xargs -0rt rm -f
        - find -name "*.gcda" -print0 | xargs -0rt rm -f