Clarification and additions in guidelines

Reworded some things.

Brought up how the IOCCC has moved away from spoilers.

As part of the section on the Makefile I have additionally added to the
Makefile.example a 'try.alt' rule in the case of someone having
alternate code. It is not required, of course.
This commit is contained in:
Cody Boone Ferguson committed 2025-01-22 09:59:03 -08:00
1 parent 4037f6e284
commit eda967ff60
3 files changed
+92 -51

No files matched your search

+26 -15
View File
@@ -167,21 +167,6 @@ all: data ${TARGET}
${PROG}: ${PROG}.c
${CC} ${CFLAGS} ${PROG}.c -o $@ ${LDFLAGS}
# alternative executable
#
alt: data ${ALT_TARGET}
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} ${PROG}.alt.c -o $@ ${LDFLAGS}
# data files
#
data: ${DATA}
# both all and alt
#
everything: all alt
# suggested way(s) to run the program
#
try: ${PROG} ${DATA}
@@ -192,6 +177,32 @@ try: ${PROG} ${DATA}
./${PROG} some arguments
# alternative executable
#
alt: data ${ALT_TARGET}
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} ${PROG}.alt.c -o $@ ${LDFLAGS}
# suggested way(s) to run alt code, if you include one
#
try.alt: ${PROG}.alt ${DATA}
@# remove these comments
@# notice how we do not assume that . is a component of the $PATH environment variable
@# you may use the try.alt.sh script if you have one
@# change this next line as needed
./${PROG}.alt some arguments
# data files
#
data: ${DATA}
# both all and alt
#
everything: all alt
###############
# utility rules
###############