Skip to contentSkip to conversation

btrfs-progs: fix parallel build

PATCH In review David Sterba 2 participants 2 messages Jan 31, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs-progs: fix parallel build

Parallel build may fail due to late creation of version.h, fix the rule name that does not match the filename.

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index 6df402c..bef1e13 100644
@@ -52,9 +52,9 @@ endif
 	$(Q)$(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $<
 
 
-all: version $(progs) manpages
+all: version.h $(progs) manpages
 
-version:
+version.h:
 	$(Q)bash version.sh
 
 btrfs: $(objects) btrfs.o help.o $(cmds_objects)
Signature · 1 line
1.8.0.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · David Sterba

Parallel build may fail due to late creation of version.h, fix the rule name that does not match the filename.

Look good, thanks. surprised I didn't run into this.

Quoted 21 lines
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index 6df402c..bef1e13 100644
@@ -52,9 +52,9 @@ endif
 	$(Q)$(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $<
 
 
-all: version $(progs) manpages
+all: version.h $(progs) manpages
 
-version:
+version.h:
 	$(Q)bash version.sh
 
 btrfs: $(objects) btrfs.o help.o $(cmds_objects)