From c2ef29dc0aacd5bf56cce9dca284c04403cec2fc Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Tue, 19 Mar 2024 16:23:07 -0700 Subject: [PATCH] improve notes printed in Makefile for 1993/lmfjyh OAlso separate `make all` from `make alt`. --- 1993/lmfjyh/Makefile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/1993/lmfjyh/Makefile b/1993/lmfjyh/Makefile index ef74cbfc2..e90379a69 100644 --- a/1993/lmfjyh/Makefile +++ b/1993/lmfjyh/Makefile @@ -129,22 +129,22 @@ all: data ${TARGET} ${PROG}: ${PROG}.c @echo "NOTE: This will not compile when using modern compilers because" - @echo "it relies on a compiler bug which was fixed in gcc 2.3.3 (a very" - @echo "long time ago now). We will build the alt version as $@ in the very" - @echo "likely case this fails to compile. If however you wish to manually" - @echo "compile the alt version you should do:" - @echo - @echo " make alt" - @echo - @echo "and then run ${ALT_TARGET}." + @echo "it relies on a compiler bug which was fixed in gcc 2.3.3 a very" + @echo "long time ago." @echo ${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c ${CP} lmfjyh.c \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c - ${CC} ${CFLAGS} \ + @echo ${CC} ${CFLAGS} \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c -o $@ ${LDFLAGS} + @${CC} ${CFLAGS} \ \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c -o $@ ${LDFLAGS} || \ - ${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c - ${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c - ${CC} ${CFLAGS} ${PROG}.alt.c -o $@ ${LDFLAGS} + echo && \ + echo "Try compiling the alt version using:" && \ + echo && \ + echo " make alt" && \ + echo && \ + echo "and then run the alternate program:" && \ + echo && \ + echo " ./${ALT_TARGET}" # alternative executable #