aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-10-05 10:06:11 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-10-05 10:06:11 +0000
commit7abe7098676aeb0654ef0159f589484b4cf520e8 (patch)
tree2303a453b8bee35eec1c0e1511553ac243e3eaaf
parent5c071bcf2f6bc923b5d6779b3563d08b80a8949d (diff)
downloadbusybox-w32-7abe7098676aeb0654ef0159f589484b4cf520e8.tar.gz
busybox-w32-7abe7098676aeb0654ef0159f589484b4cf520e8.tar.bz2
busybox-w32-7abe7098676aeb0654ef0159f589484b4cf520e8.zip
- Fix spurious rebuilds for (parallel) out-of-tree builds.
Make sure that the directories are order-only prerequisites. Otherwise we may have object files created after the timestamp of the directory was updated which would lead to spurious rebuilds (as some of the dentries may be older than the dir itself).
-rw-r--r--e2fsprogs/Makefile.in20
1 files changed, 12 insertions, 8 deletions
diff --git a/e2fsprogs/Makefile.in b/e2fsprogs/Makefile.in
index 46a684ee7..546cc8368 100644
--- a/e2fsprogs/Makefile.in
+++ b/e2fsprogs/Makefile.in
@@ -7,9 +7,9 @@
7E2FSPROGS_AR:=e2fsprogs.a 7E2FSPROGS_AR:=e2fsprogs.a
8 8
9E2FSPROGS_DIR:=$(top_builddir)/e2fsprogs 9E2FSPROGS_DIR:=$(top_builddir)/e2fsprogs
10E2FSPROGS_INC:=$(top_srcdir)/e2fsprogs 10E2FSPROGS_SRC:=$(top_srcdir)/e2fsprogs
11 11
12E2FSPROGS_CFLAGS := -I$(E2FSPROGS_INC) -include $(E2FSPROGS_INC)/e2fsbb.h 12E2FSPROGS_CFLAGS := -I$(E2FSPROGS_SRC) -include $(E2FSPROGS_SRC)/e2fsbb.h
13 13
14BLKID_SRC := cache.c dev.c devname.c devno.c blkid_getsize.c \ 14BLKID_SRC := cache.c dev.c devname.c devno.c blkid_getsize.c \
15 probe.c read.c resolve.c save.c tag.c 15 probe.c read.c resolve.c save.c tag.c
@@ -42,13 +42,17 @@ UUID_OBJS := $(patsubst %.c,%.o, $(UUID_SRCS))
42# for building out-of-tree we need to make sure that the directories to hold 42# for building out-of-tree we need to make sure that the directories to hold
43# the object tree are created 43# the object tree are created
44$(patsubst %,$(E2FSPROGS_DIR)/%, blkid e2fsck e2p ext2fs uuid): 44$(patsubst %,$(E2FSPROGS_DIR)/%, blkid e2fsck e2p ext2fs uuid):
45 mkdir -p "$@" 45 @mkdir -p "$@"
46 46
47$(patsubst %,$(E2FSPROGS_DIR)/%, $(BLKID_OBJS)):$(E2FSPROGS_DIR)/blkid 47# make sure that the directories are order-only prerequisites. Otherwise we
48$(patsubst %,$(E2FSPROGS_DIR)/%, $(E2FSCK_OBJS)):$(E2FSPROGS_DIR)/e2fsck 48# may have object files created after the timestamp of the directory was
49$(patsubst %,$(E2FSPROGS_DIR)/%, $(E2P_OBJS)):$(E2FSPROGS_DIR)/e2p 49# updated which would lead to spurious rebuilds (as some of the dentries
50$(patsubst %,$(E2FSPROGS_DIR)/%, $(EXT2FS_OBJS)):$(E2FSPROGS_DIR)/ext2fs 50# may be older than the dir itself).
51$(patsubst %,$(E2FSPROGS_DIR)/%, $(UUID_OBJS)):$(E2FSPROGS_DIR)/uuid 51$(patsubst %,$(E2FSPROGS_DIR)/%, $(BLKID_OBJS)):|$(E2FSPROGS_DIR)/blkid
52$(patsubst %,$(E2FSPROGS_DIR)/%, $(E2FSCK_OBJS)):|$(E2FSPROGS_DIR)/e2fsck
53$(patsubst %,$(E2FSPROGS_DIR)/%, $(E2P_OBJS)):|$(E2FSPROGS_DIR)/e2p
54$(patsubst %,$(E2FSPROGS_DIR)/%, $(EXT2FS_OBJS)):|$(E2FSPROGS_DIR)/ext2fs
55$(patsubst %,$(E2FSPROGS_DIR)/%, $(UUID_OBJS)):|$(E2FSPROGS_DIR)/uuid
52 56
53E2FSPROGS-y:= 57E2FSPROGS-y:=
54E2FSPROGS-$(CONFIG_CHATTR) += chattr.o $(E2P_OBJS) 58E2FSPROGS-$(CONFIG_CHATTR) += chattr.o $(E2P_OBJS)