From 5dd6123cfaa5ef49a74f7f5cc958f25fe344c385 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Mon, 20 Feb 2023 15:48:56 +0000 Subject: [PATCH] Fix generating bison output for pars.y --- syscall/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syscall/Makefile b/syscall/Makefile index a7d0684..0202962 100644 --- a/syscall/Makefile +++ b/syscall/Makefile @@ -49,7 +49,7 @@ gen-syscall: $(gen_objs) $(CC) $(gen_objs) -o $@ pars.c pars.h: pars.y - if bison --defines=pars.h.tmp$$$$ --output=pars.c $<; then mv pars.h.tmp$$$$ pars.h; else rm -f pars.h.tmp$$$$; exit 1; fi + bison --defines=pars.h --output=pars.c $< || (rm -f pars.h; exit 1) pars.o: pars.c pars.h