summaryrefslogtreecommitdiff
path: root/console-client/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'console-client/Makefile')
-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 \