summaryrefslogtreecommitdiff
path: root/console-client
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-02-29 03:39:13 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-02-29 03:39:13 +0100
commit2f0b4c592b4f9fd3c6d5744a3bc077237ce9278d (patch)
tree210fa176b055efb2ea15a075f8e0abb15f686973 /console-client
parent9019d6fc527882b8e09ca210e997b43a7b77c70f (diff)
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.
Diffstat (limited to 'console-client')
-rw-r--r--console-client/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/console-client/Makefile b/console-client/Makefile
index 4ebdc824..1784d7cf 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 \