commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 01/03: Fix parallel build


From: Samuel Thibault
Subject: [hurd] 01/03: Fix parallel build
Date: Mon, 14 Mar 2016 00:40:47 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 2f0b4c592b4f9fd3c6d5744a3bc077237ce9278d
Author: Samuel Thibault <address@hidden>
Date:   Mon Feb 29 03:39:13 2016 +0100

    Fix parallel build
    
    * console-client/Makefile (parser.tab.h): Redefine the standard yacc rule to
    make it build the header too, to avoid concurrency between the standard yacc
    rule and the rule that builds the header.
    * sutils/Makefile (OBJS): Append .o suffix to $(progs) instead of .c.
---
 console-client/Makefile | 6 +++---
 sutils/Makefile         | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/console-client/Makefile b/console-client/Makefile
index 4ebdc82..1784d7c 100644
--- a/console-client/Makefile
+++ b/console-client/Makefile
@@ -96,10 +96,10 @@ $(module-dir)/%: %
                '-Wl,-(' $($*-LDLIBS) '-Wl,-)' $^
 
 lex.c: lex.l parser.tab.h
-parser.tab.h: parser.y
+%.tab.h %.c: %.y
        if $(YACC) $(YFLAGS) -d $<; then \
-           mv y.tab.h $@; \
-           rm y.tab.c; \
+           mv y.tab.h $*.tab.h; \
+           mv y.tab.c $*.c; \
        fi
 
 XKB_SRCS = xkb/compose.c xkb/kstoucs.c xkb/parser.y xkb/lex.l \
diff --git a/sutils/Makefile b/sutils/Makefile
index e30bfb7..f4e1811 100644
--- a/sutils/Makefile
+++ b/sutils/Makefile
@@ -27,7 +27,7 @@ special-targets = $(scripts)
 installationdir = $(sbindir)
 SRCS = $(progs:=.c) clookup.c fstab.c update.c $(scripts:=.sh)
 
-OBJS = $(progs:=.c)
+OBJS = $(progs:=.o)
 HURDLIBS = store shouldbeinlibc
 
 include ../Makeconf

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]