Clean up 1993/lmfjyh on compilation error

Now if the compilation fails (it relies on a bug in gcc version < 2.3.3)
the bogus file is removed. It is not possible to check the gcc version
in the source code because the file is copied from lmfjyh.c in the
Makefile prior to the compilation. Well it's possible to check the gcc
version but it's too late at that point - the file would have already
been made :-)

This prevents the user form having to do quoting of the file (risking
making a mistake) or using -find . -inum ... -delete after obtaining the
inode (ls -li).
This commit is contained in:
Cody Boone Ferguson committed 2023-05-16 03:36:20 -07:00
1 parent 6c53a08b7d
commit 6c07cc538d
1 file changed
+2 -1
+2 -1
View File
@@ -133,7 +133,8 @@ ${PROG}: ${PROG}.c
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
${CP} lmfjyh.c \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
${CC} ${CFLAGS} \
\"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c -o $@ ${LIBS}
\"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c -o $@ ${LIBS} || \
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
# alternative executable
#