Fixes to 1992/ant

The Makefile has had a new rule added and another fixed as 'am' does not
support certain features that the Makefile uses.

Added #include <time.h> as the author stated that for some systems it
might be necessary (like DOS with Turbo C assuming anyone here uses
that).

Typo fixes including references to files that do not exist (am.c ->
ant.c and so on).

Typo/format check README.md and ant.README.
This commit is contained in:
Cody Boone Ferguson committed 2023-11-08 09:47:20 -08:00
1 parent 0e452a3813
commit de7ba83559
6 files changed
+52 -26

No files matched your search

+18 -10
View File
@@ -113,7 +113,7 @@ PROG= ${ENTRY}
#
OBJ= ${PROG}.o
DATA=
TARGET= ${PROG} am
TARGET= ${PROG}
#
ALT_OBJ=
ALT_TARGET=
@@ -129,15 +129,18 @@ all: data ${TARGET}
.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
clean clobber install love haste waste maker easter_egg \
sandwich supernova deep_magic magic charon pluto
sandwich supernova deep_magic magic charon pluto \
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
am: ${PROG}
${RM} -f $@
${LN} $< $@
am: ant
rm -f am
ln ant am
cp am am.safe
cp am.safe am
rm -f am.safe
# alternative executable
#
@@ -215,11 +218,16 @@ clobber: clean
echo 'ate sandwich'; \
fi
am_clobber: clean am
${RM} -f am.safe
${CP} am am.safe
${CP} am.safe am
${RM} -f am.safe
am_clean:
rm -f ant.o am.o
@-if [ -f indent.c ]; then \
echo ${RM} -f indent.c; \
${RM} -f indent.c; \
fi
am_clobber: am_clean
rm -f am.safe
install:
@echo "Dr. Spock says that is not logical!"