add orig_prog_diff and alt_prog_diff rules to Makefiles

This commit is contained in:
Landon Curt Noll committed 2023-10-18 17:00:02 -07:00
1 parent e1cd30eff0
commit 8471e805ed
349 files changed
+5680 -1074

No files matched your search

+15 -3
View File
@@ -134,9 +134,9 @@ V6_TAPE_URL= https://www.tuhs.org/Archive/Distributions/Research/Ken_Wellsch_v6/
all: data ${TARGET}
@${TRUE}
.PHONY: all alt data everything clean clobber install \
love haste waste maker easter_egg sandwich \
supernova deep_magic magic charon pluto
.PHONY: all alt data everything orig_prog_diff alt_prog_diff \
clean clobber install love haste waste maker easter_egg \
sandwich supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c rk05.bsd.fs
${CC} ${CFLAGS} -DI='"rk05.bsd.fs"' -DA=4096 -DS=0173030 -DW=MAP_PRIVATE -DT= -DX=5 -DY=128 \
@@ -203,6 +203,18 @@ data: ${DATA}
everything: all alt
@${TRUE}
# diff orig source and source
#
orig_prog_diff: ${PROG}.orig.c ${PROG}.c
@-${DIFF} -u ${PROG}.orig.c ${PROG}.c
# diff alt source and source
#
alt_prog_diff: ${PROG}.c
@-if [[ -e ${PROG}.alt.c ]]; then \
${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
fi
###############
# utility rules