Update 2020/ferguson[12]

Surprise, surprise there are more updates on my entries! :-) But to be
fair to me there were some important fixes and I had not really gone
through the README files of these entries (I still didn't go through all
of them thoroughly and probably won't since I'm far too concise :-)
:-)). In fact some of these problems broke some of the features of some
of the entries.

In 2020/ferguson1: termcaps must be compiled by make all. It also needed
a make test rule that runs ./termcaps. As well it needed a play and
snake-colours rule which copies and chmod +x the respective .sh files.

There were some typo fixes here and there as well as (I hope) a bit
clearer wording.

Some out of date things were changed.
This commit is contained in:
Cody Boone Ferguson committed 2023-03-13 06:12:20 -07:00
1 parent c47fd06321
commit aa15137a9d
6 files changed
+247 -113

No files matched your search

+23 -1
View File
@@ -173,7 +173,7 @@ DATA= COMPILING.md HACKING.md bugs.html bugs.md cake.jpg cannibalism.log \
halfwidth_vs_fullwidth.png ioccc-cake.jpg play.sh prog.2.c prog.3-j.c \
prog.3.c snake-colours.sh snake.1 spoilers.html spoilers.md \
termcaps.c terminals.html terminals.md troubleshooting.html troubleshooting.md
TARGET= ${PROG}
TARGET= ${PROG} termcaps play snake-colours
#
ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ${PROG}.alt
@@ -193,6 +193,28 @@ all: data ${TARGET}
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# termcaps - test utility for terminal capabilities, size etc.
termcaps: termcaps.c
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# play - allows configuring colours and playing pre-configured gameplay modes
#
play: play.sh
${CAT} $< > $@
${CHMOD} a+x $@
# snake-colours - allows for configuring colours prior to compiling and playing
#
snake-colours: snake-colours.sh
${CAT} $< > $@
${CHMOD} a+x $@
# make test: run termcaps
#
test: termcaps
@./termcaps
# alternative executable
#
alt: data ${ALT_TARGET}