From 19d7c1fe7f3b21156cf681e8f793d130153f3e1b Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 8 Jul 2023 06:04:34 -0700 Subject: [PATCH] Fix funny problem in alt target in 1989/westley In linux running make ver1 and make ver2 and make ver3 (not sure about ver0 now) there was a strange error when running the rules that meant the code was not compiled. Thinking on it just now it very likely was the exit code of the program causing the problem but the file was generated so I added a '-' to the line so that the rule will proceed to try and compile the code. --- 1989/westley/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/1989/westley/Makefile b/1989/westley/Makefile index 4c4ec0776..eef3a947a 100644 --- a/1989/westley/Makefile +++ b/1989/westley/Makefile @@ -140,21 +140,21 @@ alt: data ${ALT_TARGET} @${TRUE} ver0: ${PROG} - ./${PROG} < westley.c > ver0.c + -./${PROG} < westley.c > ver0.c -${CC} ${CFLAGS} ver0.c -o $@ ${LIBS} ver1: ${PROG} - ./${PROG} 1 < westley.c > ver1.c + -./${PROG} 1 < westley.c > ver1.c @echo "** NOTE: this version will not compile with clang **" -${CC} ${CFLAGS} ver1.c -o $@ ${LIBS} ver2: ${PROG} - ./${PROG} 1 2 < westley.c > ver2.c + -./${PROG} 1 2 < westley.c > ver2.c @echo "** NOTE: this version will not compile with clang **" -${CC} ${CFLAGS} ver2.c -o $@ ${LIBS} ver3: ${PROG} - ./${PROG} 1 2 3 < westley.c > ver3.c + -./${PROG} 1 2 3 < westley.c > ver3.c @echo "** NOTE: this version will not compile with clang **" -${CC} ${CFLAGS} ver3.c -o $@ ${LIBS}