diff --git a/1984/Makefile b/1984/Makefile index 7b284d01b..19f9f084b 100644 --- a/1984/Makefile +++ b/1984/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1984/anonymous/Makefile b/1984/anonymous/Makefile index 241b9a06a..fe3b5298b 100644 --- a/1984/anonymous/Makefile +++ b/1984/anonymous/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/1984/decot/Makefile b/1984/decot/Makefile index f3b56747c..c77d31131 100644 --- a/1984/decot/Makefile +++ b/1984/decot/Makefile @@ -129,9 +129,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -155,6 +155,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 diff --git a/1984/laman/Makefile b/1984/laman/Makefile index f421aa40d..1293a1d5a 100644 --- a/1984/laman/Makefile +++ b/1984/laman/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 @echo "NOTE: this entry will likely crash or do something else without an arg." @@ -147,6 +147,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 diff --git a/1984/mullender/Makefile b/1984/mullender/Makefile index 12c616442..dccb10342 100644 --- a/1984/mullender/Makefile +++ b/1984/mullender/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "NOTE: This entry is likely to fail and/or dump core on any computer other" @@ -154,6 +154,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 diff --git a/1985/Makefile b/1985/Makefile index f6bb532ac..eca4ce915 100644 --- a/1985/Makefile +++ b/1985/Makefile @@ -61,39 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.PHONY: all alt data everything clean clobber install \ - love haste waste maker easter_egg sandwich \ - supernova deep_magic magic charon pluto - -# alternative executable -# -alt: - @echo '=-=-= ${YEAR} begin make $@ =-=-=' - @echo - @for i in ${WINNERS} ; do \ - echo "=-= start ${YEAR}/$$i =-="; \ - echo "(cd $$i && $(MAKE) $@)"; \ - (cd $$i && $(MAKE) $@); \ - echo "=-= end ${YEAR}/$$i =-="; \ - echo; \ - done - @echo '=-=-= ${YEAR} complete make $@ =-=-=' - -# data files -# -data: - @echo '=-=-= ${YEAR} begin make $@ =-=-=' - @echo - @for i in ${WINNERS} ; do \ - echo "=-= start ${YEAR}/$$i =-="; \ - echo "(cd $$i && $(MAKE) $@)"; \ - (cd $$i && $(MAKE) $@); \ - echo "=-= end ${YEAR}/$$i =-="; \ - echo; \ - done - @echo '=-=-= ${YEAR} complete make $@ =-=-=' - -# both all and alt +.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 # everything: @echo '=-=-= ${YEAR} begin make $@ =-=-=' @@ -107,6 +77,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1985/applin/Makefile b/1985/applin/Makefile index 2137d268f..383f94526 100644 --- a/1985/applin/Makefile +++ b/1985/applin/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1985/august/Makefile b/1985/august/Makefile index 38a765756..d7c4b7313 100644 --- a/1985/august/Makefile +++ b/1985/august/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1985/lycklama/Makefile b/1985/lycklama/Makefile index 92833efdc..6c346530c 100644 --- a/1985/lycklama/Makefile +++ b/1985/lycklama/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1985/shapiro/Makefile b/1985/shapiro/Makefile index f114806a8..3d8ce1adb 100644 --- a/1985/shapiro/Makefile +++ b/1985/shapiro/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1985/sicherman/Makefile b/1985/sicherman/Makefile index 98a49c752..73a59e818 100644 --- a/1985/sicherman/Makefile +++ b/1985/sicherman/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1986/Makefile b/1986/Makefile index ea6554188..c9b4d48e4 100644 --- a/1986/Makefile +++ b/1986/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1986/applin/Makefile b/1986/applin/Makefile index 4d44663d8..a82a232d1 100644 --- a/1986/applin/Makefile +++ b/1986/applin/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1986/august/Makefile b/1986/august/Makefile index 47be32045..863b008ce 100644 --- a/1986/august/Makefile +++ b/1986/august/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 @echo "NOTE: this entry is very likely to dump core after its output." @@ -148,6 +148,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 diff --git a/1986/bright/Makefile b/1986/bright/Makefile index 565f72de6..42eac1175 100644 --- a/1986/bright/Makefile +++ b/1986/bright/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1986/hague/Makefile b/1986/hague/Makefile index 7fd4ca6cc..adc445e27 100644 --- a/1986/hague/Makefile +++ b/1986/hague/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "NOTE: this entry uses gets() so you might get a warning about this" @@ -149,6 +149,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 diff --git a/1986/holloway/Makefile b/1986/holloway/Makefile index 31217eb93..b32ad7344 100644 --- a/1986/holloway/Makefile +++ b/1986/holloway/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1986/marshall/Makefile b/1986/marshall/Makefile index f623359ab..8e2101ffe 100644 --- a/1986/marshall/Makefile +++ b/1986/marshall/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1986/pawka/Makefile b/1986/pawka/Makefile index 0b3fa1adb..0a08cdcc2 100644 --- a/1986/pawka/Makefile +++ b/1986/pawka/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1986/stein/Makefile b/1986/stein/Makefile index 778dc938f..28fbb6b5c 100644 --- a/1986/stein/Makefile +++ b/1986/stein/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1986/wall/Makefile b/1986/wall/Makefile index 22cb187b8..97e0cfb5e 100644 --- a/1986/wall/Makefile +++ b/1986/wall/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/1987/Makefile b/1987/Makefile index 003bb03ba..4eb1fb66f 100644 --- a/1987/Makefile +++ b/1987/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1987/biggar/Makefile b/1987/biggar/Makefile index a2a071bb1..38f033118 100644 --- a/1987/biggar/Makefile +++ b/1987/biggar/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} -DC="R>0" -DI="if(T)O" -DO="c=write(1,&c,1);" \ @@ -147,6 +147,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 diff --git a/1987/heckbert/Makefile b/1987/heckbert/Makefile index 603f1f623..16bbf388c 100644 --- a/1987/heckbert/Makefile +++ b/1987/heckbert/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1987/hines/Makefile b/1987/hines/Makefile index 0abc757d4..45f22e1e7 100644 --- a/1987/hines/Makefile +++ b/1987/hines/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1987/korn/Makefile b/1987/korn/Makefile index 8529a8e61..90c9fb386 100644 --- a/1987/korn/Makefile +++ b/1987/korn/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1987/lievaart/Makefile b/1987/lievaart/Makefile index c7a5d986b..0712ac348 100644 --- a/1987/lievaart/Makefile +++ b/1987/lievaart/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt ${PROG}2.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -158,6 +158,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 diff --git a/1987/wall/Makefile b/1987/wall/Makefile index 2c9b202a4..1cda302a9 100644 --- a/1987/wall/Makefile +++ b/1987/wall/Makefile @@ -138,9 +138,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -160,6 +160,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 diff --git a/1987/westley/Makefile b/1987/westley/Makefile index c2c2d8377..cbb74b947 100644 --- a/1987/westley/Makefile +++ b/1987/westley/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/1988/Makefile b/1988/Makefile index 6f96cee89..67d39a080 100644 --- a/1988/Makefile +++ b/1988/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1988/applin/Makefile b/1988/applin/Makefile index 1673422cd..d59ac68db 100644 --- a/1988/applin/Makefile +++ b/1988/applin/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= applin.alt 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 # Way back in 1988 .. # @@ -170,6 +170,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 diff --git a/1988/dale/Makefile b/1988/dale/Makefile index 1c6713cc1..f66940cb1 100644 --- a/1988/dale/Makefile +++ b/1988/dale/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1988/isaak/Makefile b/1988/isaak/Makefile index c2c8dcadc..3f67ae050 100644 --- a/1988/isaak/Makefile +++ b/1988/isaak/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,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 diff --git a/1988/litmaath/Makefile b/1988/litmaath/Makefile index 8e2ec5026..4d4272361 100644 --- a/1988/litmaath/Makefile +++ b/1988/litmaath/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1988/phillipps/Makefile b/1988/phillipps/Makefile index f8ecadda7..e7a0ad298 100644 --- a/1988/phillipps/Makefile +++ b/1988/phillipps/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1988/reddy/Makefile b/1988/reddy/Makefile index 66e54a2a9..76caa64a7 100644 --- a/1988/reddy/Makefile +++ b/1988/reddy/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1988/robison/Makefile b/1988/robison/Makefile index c4403b5dc..833190ceb 100644 --- a/1988/robison/Makefile +++ b/1988/robison/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1988/spinellis/Makefile b/1988/spinellis/Makefile index e0dc54dde..56644c31e 100644 --- a/1988/spinellis/Makefile +++ b/1988/spinellis/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= ${PROG}.alt 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 input.txt @echo "NOTE: this entry will not compile with some compilers like clang." @@ -153,6 +153,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 diff --git a/1988/westley/Makefile b/1988/westley/Makefile index 30344fec4..43292ff79 100644 --- a/1988/westley/Makefile +++ b/1988/westley/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1989/Makefile b/1989/Makefile index 141cc5101..2f96689a1 100644 --- a/1989/Makefile +++ b/1989/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1989/fubar/Makefile b/1989/fubar/Makefile index c923e5cd3..330b8bc3f 100644 --- a/1989/fubar/Makefile +++ b/1989/fubar/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${RM} -f $@ @@ -146,6 +146,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 diff --git a/1989/jar.1/Makefile b/1989/jar.1/Makefile index 9c1b9d67f..a553faf19 100644 --- a/1989/jar.1/Makefile +++ b/1989/jar.1/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo NOTE: this compilation results in running the program itself. @@ -155,6 +155,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 diff --git a/1989/jar.2/Makefile b/1989/jar.2/Makefile index a83b83789..7616924c6 100644 --- a/1989/jar.2/Makefile +++ b/1989/jar.2/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 @echo NOTE: invalid input will cause this entry to dump core. @@ -148,6 +148,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 diff --git a/1989/ovdluhe/Makefile b/1989/ovdluhe/Makefile index a45ae71ca..e8f7941c4 100644 --- a/1989/ovdluhe/Makefile +++ b/1989/ovdluhe/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,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 diff --git a/1989/paul/Makefile b/1989/paul/Makefile index 48e971c66..f65be869b 100644 --- a/1989/paul/Makefile +++ b/1989/paul/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1989/robison/Makefile b/1989/robison/Makefile index 0725b2156..c1d09815a 100644 --- a/1989/robison/Makefile +++ b/1989/robison/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= 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 @echo "NOTE: this entry will crash with numbers with non binary digits." @@ -151,6 +151,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 diff --git a/1989/roemer/Makefile b/1989/roemer/Makefile index 859396fee..6d73a8353 100644 --- a/1989/roemer/Makefile +++ b/1989/roemer/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1989/tromp/Makefile b/1989/tromp/Makefile index cb2e741b9..cc5dc855b 100644 --- a/1989/tromp/Makefile +++ b/1989/tromp/Makefile @@ -133,9 +133,9 @@ CINCLUDE+= -include stdio.h -include unistd.h -include stdlib.h 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -158,6 +158,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 diff --git a/1989/vanb/Makefile b/1989/vanb/Makefile index e12d36dac..56444934a 100644 --- a/1989/vanb/Makefile +++ b/1989/vanb/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1989/westley/Makefile b/1989/westley/Makefile index c7c1ae12f..2e18caef9 100644 --- a/1989/westley/Makefile +++ b/1989/westley/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= ver0 ver1 ver2 ver3 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 @echo "NOTE: This entry uses non-standard args to main() that do not work with some modern compilers." @@ -168,6 +168,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 diff --git a/1990/Makefile b/1990/Makefile index b4a59e1ae..17a6966b3 100644 --- a/1990/Makefile +++ b/1990/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1990/baruch/Makefile b/1990/baruch/Makefile index d2b4f6b96..1f901a332 100644 --- a/1990/baruch/Makefile +++ b/1990/baruch/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1990/cmills/Makefile b/1990/cmills/Makefile index a7213ebe4..30062b2ab 100644 --- a/1990/cmills/Makefile +++ b/1990/cmills/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1990/dds/Makefile b/1990/dds/Makefile index a970c081d..797a0a7b5 100644 --- a/1990/dds/Makefile +++ b/1990/dds/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1990/dg/Makefile b/1990/dg/Makefile index c80686460..71ed320fb 100644 --- a/1990/dg/Makefile +++ b/1990/dg/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1990/jaw/Makefile b/1990/jaw/Makefile index 869e48159..9729ea5cf 100644 --- a/1990/jaw/Makefile +++ b/1990/jaw/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 zcat: ${PROG}.c ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -158,6 +158,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 diff --git a/1990/pjr/Makefile b/1990/pjr/Makefile index b678776cd..79925acbb 100644 --- a/1990/pjr/Makefile +++ b/1990/pjr/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1990/scjones/Makefile b/1990/scjones/Makefile index c64abcf06..99893f885 100644 --- a/1990/scjones/Makefile +++ b/1990/scjones/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1990/stig/Makefile b/1990/stig/Makefile index 334ac727a..5b3125e3d 100644 --- a/1990/stig/Makefile +++ b/1990/stig/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 @echo "source ./stig.sh ; source ./stig.c" | ${SH} @@ -144,6 +144,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 diff --git a/1990/tbr/Makefile b/1990/tbr/Makefile index 766ff814d..c4877ca59 100644 --- a/1990/tbr/Makefile +++ b/1990/tbr/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -151,6 +151,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 diff --git a/1990/theorem/Makefile b/1990/theorem/Makefile index ff5e3a962..adaabe9c7 100644 --- a/1990/theorem/Makefile +++ b/1990/theorem/Makefile @@ -129,9 +129,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -170,6 +170,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 diff --git a/1990/westley/Makefile b/1990/westley/Makefile index a8a453bb5..8b4dc5f51 100644 --- a/1990/westley/Makefile +++ b/1990/westley/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "NOTE: this will very likely crash without an arg and will enter an infinite loop" @@ -151,6 +151,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 diff --git a/1991/Makefile b/1991/Makefile index 57549d07e..b7df81bcf 100644 --- a/1991/Makefile +++ b/1991/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1991/ant/Makefile b/1991/ant/Makefile index 90244cdb0..e646c1a98 100644 --- a/1991/ant/Makefile +++ b/1991/ant/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1991/brnstnd/Makefile b/1991/brnstnd/Makefile index ff1e5dfd6..3ce0fe5b9 100644 --- a/1991/brnstnd/Makefile +++ b/1991/brnstnd/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1991/buzzard/Makefile b/1991/buzzard/Makefile index ef8a19773..ee2764c5e 100644 --- a/1991/buzzard/Makefile +++ b/1991/buzzard/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1991/cdupont/Makefile b/1991/cdupont/Makefile index e01faca26..84c942348 100644 --- a/1991/cdupont/Makefile +++ b/1991/cdupont/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -144,6 +144,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 diff --git a/1991/davidguy/Makefile b/1991/davidguy/Makefile index 83af659b7..ca633ea02 100644 --- a/1991/davidguy/Makefile +++ b/1991/davidguy/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/1991/dds/Makefile b/1991/dds/Makefile index 7be7b50ec..723a86dbf 100644 --- a/1991/dds/Makefile +++ b/1991/dds/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/1991/fine/Makefile b/1991/fine/Makefile index 884227c08..5b56f7825 100644 --- a/1991/fine/Makefile +++ b/1991/fine/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1991/rince/Makefile b/1991/rince/Makefile index e50c4fbc7..a3f14e9b4 100644 --- a/1991/rince/Makefile +++ b/1991/rince/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1991/westley/Makefile b/1991/westley/Makefile index 9d0e20405..7b15e9438 100644 --- a/1991/westley/Makefile +++ b/1991/westley/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -199,6 +199,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 diff --git a/1992/Makefile b/1992/Makefile index 205de8e08..8f2fe3fae 100644 --- a/1992/Makefile +++ b/1992/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1992/adrian/Makefile b/1992/adrian/Makefile index 1463b7f46..904ceef0e 100644 --- a/1992/adrian/Makefile +++ b/1992/adrian/Makefile @@ -131,9 +131,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -193,6 +193,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 diff --git a/1992/albert/Makefile b/1992/albert/Makefile index 77728d32f..b7a484372 100644 --- a/1992/albert/Makefile +++ b/1992/albert/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1992/ant/Makefile b/1992/ant/Makefile index e0f9d6afd..bb751ac71 100644 --- a/1992/ant/Makefile +++ b/1992/ant/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= all: data ${TARGET} @${TRUE} -.PHONY: all alt data everything clean clobber install \ - love haste waste maker easter_egg sandwich \ - am am_clobber \ +.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 supernova deep_magic magic charon pluto ${PROG}: ${PROG}.c @@ -153,6 +153,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 diff --git a/1992/buzzard.1/Makefile b/1992/buzzard.1/Makefile index be1ff5e30..55bd528bc 100644 --- a/1992/buzzard.1/Makefile +++ b/1992/buzzard.1/Makefile @@ -128,9 +128,9 @@ CPPCLEAN= ${GREP} -v '^. [0-9][0-9]*' 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -179,6 +179,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 diff --git a/1992/buzzard.2/Makefile b/1992/buzzard.2/Makefile index ece949c96..204ad70c9 100644 --- a/1992/buzzard.2/Makefile +++ b/1992/buzzard.2/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/1992/gson/Makefile b/1992/gson/Makefile index 9b06c9fd7..995a645f5 100644 --- a/1992/gson/Makefile +++ b/1992/gson/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -154,6 +154,18 @@ data: ${DATA} everything: all alt +# 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 ############### diff --git a/1992/imc/Makefile b/1992/imc/Makefile index b242a6bf3..9e0777e09 100644 --- a/1992/imc/Makefile +++ b/1992/imc/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1992/kivinen/Makefile b/1992/kivinen/Makefile index 79a1168a4..e756ba22c 100644 --- a/1992/kivinen/Makefile +++ b/1992/kivinen/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1992/lush/Makefile b/1992/lush/Makefile index 8b34391a8..6c7f4a389 100644 --- a/1992/lush/Makefile +++ b/1992/lush/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/1992/marangon/Makefile b/1992/marangon/Makefile index b5aace2eb..fd5367349 100644 --- a/1992/marangon/Makefile +++ b/1992/marangon/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1992/nathan/Makefile b/1992/nathan/Makefile index b3274fff1..53357238a 100644 --- a/1992/nathan/Makefile +++ b/1992/nathan/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -144,6 +144,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 diff --git a/1992/vern/Makefile b/1992/vern/Makefile index 7a4261741..57faf38cc 100644 --- a/1992/vern/Makefile +++ b/1992/vern/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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}.tmp.c ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/1992/westley/Makefile b/1992/westley/Makefile index ba85a8d36..2c8558cb4 100644 --- a/1992/westley/Makefile +++ b/1992/westley/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "NOTE: your terminal must wrap at 80 columns for this to work right!" @@ -150,6 +150,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 diff --git a/1993/Makefile b/1993/Makefile index 003c4386f..51cf93dd4 100644 --- a/1993/Makefile +++ b/1993/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1993/ant/Makefile b/1993/ant/Makefile index 29f3743fd..fefed430f 100644 --- a/1993/ant/Makefile +++ b/1993/ant/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -154,6 +154,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 diff --git a/1993/cmills/Makefile b/1993/cmills/Makefile index 3c00c1c44..5b7ae60fc 100644 --- a/1993/cmills/Makefile +++ b/1993/cmills/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/1993/dgibson/Makefile b/1993/dgibson/Makefile index 6c122a7cd..e9bf25427 100644 --- a/1993/dgibson/Makefile +++ b/1993/dgibson/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 -@if [ ! -f life.d ] ; then \ @@ -155,6 +155,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 diff --git a/1993/ejb/Makefile b/1993/ejb/Makefile index 75454ef39..03b38f439 100644 --- a/1993/ejb/Makefile +++ b/1993/ejb/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1993/jonth/Makefile b/1993/jonth/Makefile index a0bb7728c..52c8e5d62 100644 --- a/1993/jonth/Makefile +++ b/1993/jonth/Makefile @@ -130,9 +130,9 @@ ALT_TARGET= 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}.tmp.c ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -155,6 +155,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 diff --git a/1993/leo/Makefile b/1993/leo/Makefile index 5284db246..bf00ffc74 100644 --- a/1993/leo/Makefile +++ b/1993/leo/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= mind all: data ${TARGET} ${ALT_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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/1993/lmfjyh/Makefile b/1993/lmfjyh/Makefile index 552ce65f2..7990c477b 100644 --- a/1993/lmfjyh/Makefile +++ b/1993/lmfjyh/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "NOTE: This will not compile when using modern compilers because" @@ -153,6 +153,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 diff --git a/1993/plummer/Makefile b/1993/plummer/Makefile index eb84df325..e7b7fa96d 100644 --- a/1993/plummer/Makefile +++ b/1993/plummer/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "NOTE: this program will likely crash or do something else without enough args." @@ -150,6 +150,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 diff --git a/1993/rince/Makefile b/1993/rince/Makefile index 87b1ed2ad..fc665c435 100644 --- a/1993/rince/Makefile +++ b/1993/rince/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,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 diff --git a/1993/schnitzi/Makefile b/1993/schnitzi/Makefile index 960a975a8..268d5584a 100644 --- a/1993/schnitzi/Makefile +++ b/1993/schnitzi/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 @echo "NOTE: this entry will segfault if the file cannot be opened." @@ -146,6 +146,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 diff --git a/1993/vanb/Makefile b/1993/vanb/Makefile index 020d0f880..27c8156f2 100644 --- a/1993/vanb/Makefile +++ b/1993/vanb/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1994/Makefile b/1994/Makefile index a4acc4ed8..831957289 100644 --- a/1994/Makefile +++ b/1994/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1994/dodsond1/Makefile b/1994/dodsond1/Makefile index e4bc6ade0..86cc55904 100644 --- a/1994/dodsond1/Makefile +++ b/1994/dodsond1/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1994/dodsond2/Makefile b/1994/dodsond2/Makefile index c80609f1f..42fd686a5 100644 --- a/1994/dodsond2/Makefile +++ b/1994/dodsond2/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1994/horton/Makefile b/1994/horton/Makefile index 4b60be77a..74805ba2a 100644 --- a/1994/horton/Makefile +++ b/1994/horton/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -155,6 +155,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 diff --git a/1994/imc/Makefile b/1994/imc/Makefile index 9cc13ee75..93e17ba27 100644 --- a/1994/imc/Makefile +++ b/1994/imc/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1994/ldb/Makefile b/1994/ldb/Makefile index 2b4bc4675..834a95321 100644 --- a/1994/ldb/Makefile +++ b/1994/ldb/Makefile @@ -129,9 +129,9 @@ CFLAGS+= -trigraphs 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -151,6 +151,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 diff --git a/1994/schnitzi/Makefile b/1994/schnitzi/Makefile index 7f54ffaa2..b025391d8 100644 --- a/1994/schnitzi/Makefile +++ b/1994/schnitzi/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "NOTE: the buffer size of this entry is very small at 100." @@ -147,6 +147,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 diff --git a/1994/shapiro/Makefile b/1994/shapiro/Makefile index 18e23c0ff..fba960e1a 100644 --- a/1994/shapiro/Makefile +++ b/1994/shapiro/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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}_t2.c ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/1994/smr/Makefile b/1994/smr/Makefile index 895d9c0f9..fc580c716 100644 --- a/1994/smr/Makefile +++ b/1994/smr/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${RM} -f $@ @@ -146,6 +146,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 diff --git a/1994/tvr/Makefile b/1994/tvr/Makefile index b65693964..0c95d20bf 100644 --- a/1994/tvr/Makefile +++ b/1994/tvr/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,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 diff --git a/1994/weisberg/Makefile b/1994/weisberg/Makefile index 9606362d3..79a3729e4 100644 --- a/1994/weisberg/Makefile +++ b/1994/weisberg/Makefile @@ -129,9 +129,9 @@ C_LARGE= -De='~(1<<8*sizeof(int)-1)' -Do='(2<<7*sizeof(int))' 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 ${CC} ${C_SMALL} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -154,6 +154,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 diff --git a/1994/westley/Makefile b/1994/westley/Makefile index 37e554d16..a0b250bd8 100644 --- a/1994/westley/Makefile +++ b/1994/westley/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 @echo "NOTE: this entry has different compiler errors based on compilation line." @@ -147,6 +147,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 diff --git a/1995/Makefile b/1995/Makefile index 747186d5f..c7235f7bb 100644 --- a/1995/Makefile +++ b/1995/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1995/cdua/Makefile b/1995/cdua/Makefile index 6369605cf..220108711 100644 --- a/1995/cdua/Makefile +++ b/1995/cdua/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -151,6 +151,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 diff --git a/1995/dodsond1/Makefile b/1995/dodsond1/Makefile index b51f7f104..83ff504af 100644 --- a/1995/dodsond1/Makefile +++ b/1995/dodsond1/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1995/dodsond2/Makefile b/1995/dodsond2/Makefile index 0ea23011b..e8c660c57 100644 --- a/1995/dodsond2/Makefile +++ b/1995/dodsond2/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1995/esde/Makefile b/1995/esde/Makefile index aaff87fe8..1301d4d91 100644 --- a/1995/esde/Makefile +++ b/1995/esde/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1995/garry/Makefile b/1995/garry/Makefile index d32950a62..7c03ecafa 100644 --- a/1995/garry/Makefile +++ b/1995/garry/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1995/heathbar/Makefile b/1995/heathbar/Makefile index c5046e488..9ce7699ad 100644 --- a/1995/heathbar/Makefile +++ b/1995/heathbar/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -144,6 +144,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 diff --git a/1995/leo/Makefile b/1995/leo/Makefile index e917f8ba2..2105ecb56 100644 --- a/1995/leo/Makefile +++ b/1995/leo/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1995/makarios/Makefile b/1995/makarios/Makefile index 1cbf4171b..91c348702 100644 --- a/1995/makarios/Makefile +++ b/1995/makarios/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1995/savastio/Makefile b/1995/savastio/Makefile index 94fec794f..6dd3da0f8 100644 --- a/1995/savastio/Makefile +++ b/1995/savastio/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1995/schnitzi/Makefile b/1995/schnitzi/Makefile index 1a157a8d9..d56e217f6 100644 --- a/1995/schnitzi/Makefile +++ b/1995/schnitzi/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1995/spinellis/Makefile b/1995/spinellis/Makefile index 5f8d94afc..4eb1c68f9 100644 --- a/1995/spinellis/Makefile +++ b/1995/spinellis/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1995/vanschnitz/Makefile b/1995/vanschnitz/Makefile index 61fe4de7f..0b6211690 100644 --- a/1995/vanschnitz/Makefile +++ b/1995/vanschnitz/Makefile @@ -125,9 +125,9 @@ LEVEL= 5 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1996/Makefile b/1996/Makefile index de539e9f2..44df3a8c5 100644 --- a/1996/Makefile +++ b/1996/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1996/august/Makefile b/1996/august/Makefile index 7fa77ddc5..f12028822 100644 --- a/1996/august/Makefile +++ b/1996/august/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -157,6 +157,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 diff --git a/1996/dalbec/Makefile b/1996/dalbec/Makefile index b72777742..e5671c17c 100644 --- a/1996/dalbec/Makefile +++ b/1996/dalbec/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -144,6 +144,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 diff --git a/1996/eldby/Makefile b/1996/eldby/Makefile index f5e649969..d19ed7a07 100644 --- a/1996/eldby/Makefile +++ b/1996/eldby/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1996/gandalf/Makefile b/1996/gandalf/Makefile index 46a8655f1..e7e6b45ac 100644 --- a/1996/gandalf/Makefile +++ b/1996/gandalf/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 @echo "NOTE: This entry might not compile when using modern compilers." @@ -156,6 +156,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 diff --git a/1996/huffman/Makefile b/1996/huffman/Makefile index eea782712..1edc541fe 100644 --- a/1996/huffman/Makefile +++ b/1996/huffman/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1996/jonth/Makefile b/1996/jonth/Makefile index 499fcaba5..7692672f3 100644 --- a/1996/jonth/Makefile +++ b/1996/jonth/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/1996/rcm/Makefile b/1996/rcm/Makefile index 5642bf0fa..9b10fd41d 100644 --- a/1996/rcm/Makefile +++ b/1996/rcm/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1996/schweikh1/Makefile b/1996/schweikh1/Makefile index 7653f7744..a4e8c9a05 100644 --- a/1996/schweikh1/Makefile +++ b/1996/schweikh1/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1996/schweikh2/Makefile b/1996/schweikh2/Makefile index 6b0617071..8b037e19a 100644 --- a/1996/schweikh2/Makefile +++ b/1996/schweikh2/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -144,6 +144,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 diff --git a/1996/schweikh3/Makefile b/1996/schweikh3/Makefile index 61bb9ee65..fa4831750 100644 --- a/1996/schweikh3/Makefile +++ b/1996/schweikh3/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1996/westley/Makefile b/1996/westley/Makefile index 9db735862..34bef300c 100644 --- a/1996/westley/Makefile +++ b/1996/westley/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= westley.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1998/Makefile b/1998/Makefile index 4c75076d1..c1d8a3124 100644 --- a/1998/Makefile +++ b/1998/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/1998/banks/Makefile b/1998/banks/Makefile index f3a6b4974..3016d5d61 100644 --- a/1998/banks/Makefile +++ b/1998/banks/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/1998/bas1/Makefile b/1998/bas1/Makefile index 8964fa7ec..8309cba31 100644 --- a/1998/bas1/Makefile +++ b/1998/bas1/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1998/bas2/Makefile b/1998/bas2/Makefile index b2c399de2..0e8ffb3c7 100644 --- a/1998/bas2/Makefile +++ b/1998/bas2/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/1998/chaos/Makefile b/1998/chaos/Makefile index 34c06f7df..4c39eff2d 100644 --- a/1998/chaos/Makefile +++ b/1998/chaos/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}_nohalf 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -154,6 +154,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 diff --git a/1998/df/Makefile b/1998/df/Makefile index 827ce00f2..19ac8ecad 100644 --- a/1998/df/Makefile +++ b/1998/df/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/1998/dlowe/Makefile b/1998/dlowe/Makefile index 0d42da633..c66d05963 100644 --- a/1998/dlowe/Makefile +++ b/1998/dlowe/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1998/dloweneil/Makefile b/1998/dloweneil/Makefile index 1ae88acf4..eff2b7235 100644 --- a/1998/dloweneil/Makefile +++ b/1998/dloweneil/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1998/dorssel/Makefile b/1998/dorssel/Makefile index fceb74513..a783779bb 100644 --- a/1998/dorssel/Makefile +++ b/1998/dorssel/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/1998/fanf/Makefile b/1998/fanf/Makefile index aa779dc7f..d289b2148 100644 --- a/1998/fanf/Makefile +++ b/1998/fanf/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 @echo "This next step may take some time to complete:" @@ -147,6 +147,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 diff --git a/1998/schnitzi/Makefile b/1998/schnitzi/Makefile index 453790f25..13756a26c 100644 --- a/1998/schnitzi/Makefile +++ b/1998/schnitzi/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1998/schweikh1/Makefile b/1998/schweikh1/Makefile index d1b6fd3d8..84055ae75 100644 --- a/1998/schweikh1/Makefile +++ b/1998/schweikh1/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/1998/schweikh2/Makefile b/1998/schweikh2/Makefile index 49f0f9803..1560af4f5 100644 --- a/1998/schweikh2/Makefile +++ b/1998/schweikh2/Makefile @@ -126,9 +126,9 @@ CFLAGS+= -trigraphs 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/1998/schweikh3/Makefile b/1998/schweikh3/Makefile index c8d57aeaa..a036ddcab 100644 --- a/1998/schweikh3/Makefile +++ b/1998/schweikh3/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/1998/tomtorfs/Makefile b/1998/tomtorfs/Makefile index fff8a0d49..baf83bc42 100644 --- a/1998/tomtorfs/Makefile +++ b/1998/tomtorfs/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2000/Makefile b/2000/Makefile index 32f357bf7..c2cae467f 100644 --- a/2000/Makefile +++ b/2000/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2000/anderson/Makefile b/2000/anderson/Makefile index 8748a1fd9..abf67cd70 100644 --- a/2000/anderson/Makefile +++ b/2000/anderson/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2000/bellard/Makefile b/2000/bellard/Makefile index 7fcf0fc29..1a80bcf3f 100644 --- a/2000/bellard/Makefile +++ b/2000/bellard/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2000/bmeyer/Makefile b/2000/bmeyer/Makefile index ae0f6e2f1..b2697ef25 100644 --- a/2000/bmeyer/Makefile +++ b/2000/bmeyer/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2000/briddlebane/Makefile b/2000/briddlebane/Makefile index 0121289fa..f2ed29cae 100644 --- a/2000/briddlebane/Makefile +++ b/2000/briddlebane/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2000/dhyang/Makefile b/2000/dhyang/Makefile index a1e4cf42b..8ae2187a8 100644 --- a/2000/dhyang/Makefile +++ b/2000/dhyang/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= all: data ${TARGET} test @${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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -175,6 +175,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 diff --git a/2000/dlowe/Makefile b/2000/dlowe/Makefile index 06ea65b4b..e70019ba8 100644 --- a/2000/dlowe/Makefile +++ b/2000/dlowe/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CDEFINE} ${CSILENCE} -DPERL_POLLUTE \ @@ -150,6 +150,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 diff --git a/2000/jarijyrki/Makefile b/2000/jarijyrki/Makefile index e4721275d..835df1d1c 100644 --- a/2000/jarijyrki/Makefile +++ b/2000/jarijyrki/Makefile @@ -130,9 +130,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,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 diff --git a/2000/natori/Makefile b/2000/natori/Makefile index 80155bf03..1eb5a1555 100644 --- a/2000/natori/Makefile +++ b/2000/natori/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2000/primenum/Makefile b/2000/primenum/Makefile index da4fa84f2..c6c5a18da 100644 --- a/2000/primenum/Makefile +++ b/2000/primenum/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2000/rince/Makefile b/2000/rince/Makefile index 5397ef4c3..739b5ffb6 100644 --- a/2000/rince/Makefile +++ b/2000/rince/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2000/robison/Makefile b/2000/robison/Makefile index 2e6dd76d0..3acff3c71 100644 --- a/2000/robison/Makefile +++ b/2000/robison/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2000/schneiderwent/Makefile b/2000/schneiderwent/Makefile index 9569c9462..26bcbef00 100644 --- a/2000/schneiderwent/Makefile +++ b/2000/schneiderwent/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 # FORCE use of -trigraphs # @@ -149,6 +149,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 diff --git a/2000/thadgavin/Makefile b/2000/thadgavin/Makefile index c93e96cd1..3ab4bea34 100644 --- a/2000/thadgavin/Makefile +++ b/2000/thadgavin/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "WARNING: if you are sensitive to rapid movement you should probably avoid this entry." @@ -158,6 +158,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 diff --git a/2000/tomx/Makefile b/2000/tomx/Makefile index 8a87c6433..e40b7fcc5 100644 --- a/2000/tomx/Makefile +++ b/2000/tomx/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -144,6 +144,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 diff --git a/2001/Makefile b/2001/Makefile index c6cd82c9b..ea8d4cd6f 100644 --- a/2001/Makefile +++ b/2001/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2001/anonymous/Makefile b/2001/anonymous/Makefile index 3ce57ff27..fc28e1516 100644 --- a/2001/anonymous/Makefile +++ b/2001/anonymous/Makefile @@ -131,9 +131,9 @@ ALT_TARGET= ${PROG}.ten.64 ${PROG}.bed.64 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 magic='${CC} ${CFLAGS}'; \ @@ -199,6 +199,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 diff --git a/2001/bellard/Makefile b/2001/bellard/Makefile index cd766452e..1cfb6d1c9 100644 --- a/2001/bellard/Makefile +++ b/2001/bellard/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} -m32 $< -o $@ ${LDFLAGS} || : @@ -154,6 +154,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 diff --git a/2001/cheong/Makefile b/2001/cheong/Makefile index 9ef65a490..42981f25d 100644 --- a/2001/cheong/Makefile +++ b/2001/cheong/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2001/coupard/Makefile b/2001/coupard/Makefile index 393cd5a58..c0f46e359 100644 --- a/2001/coupard/Makefile +++ b/2001/coupard/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2001/ctk/Makefile b/2001/ctk/Makefile index dac6b213c..2847daeaa 100644 --- a/2001/ctk/Makefile +++ b/2001/ctk/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2001/dgbeards/Makefile b/2001/dgbeards/Makefile index 05f17f388..c6197b28e 100644 --- a/2001/dgbeards/Makefile +++ b/2001/dgbeards/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2001/herrmann1/Makefile b/2001/herrmann1/Makefile index 556909e4a..98ed851cf 100644 --- a/2001/herrmann1/Makefile +++ b/2001/herrmann1/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${PROG}.sh ${SHELL} ./herrmann1.sh @@ -144,6 +144,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 diff --git a/2001/herrmann2/Makefile b/2001/herrmann2/Makefile index aeabab26e..57de7bf2b 100644 --- a/2001/herrmann2/Makefile +++ b/2001/herrmann2/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/2001/jason/Makefile b/2001/jason/Makefile index 1acc8baf0..47d3420c5 100644 --- a/2001/jason/Makefile +++ b/2001/jason/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2001/kev/Makefile b/2001/kev/Makefile index 70ada81b7..8673966a6 100644 --- a/2001/kev/Makefile +++ b/2001/kev/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -151,6 +151,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 diff --git a/2001/ollinger/Makefile b/2001/ollinger/Makefile index fe8709123..53aa956bf 100644 --- a/2001/ollinger/Makefile +++ b/2001/ollinger/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2001/rosten/Makefile b/2001/rosten/Makefile index a21335b66..f4c001886 100644 --- a/2001/rosten/Makefile +++ b/2001/rosten/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2001/schweikh/Makefile b/2001/schweikh/Makefile index c91b5c68c..108e37b3f 100644 --- a/2001/schweikh/Makefile +++ b/2001/schweikh/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2001/westley/Makefile b/2001/westley/Makefile index 788e01a77..1f8c9e045 100644 --- a/2001/westley/Makefile +++ b/2001/westley/Makefile @@ -131,9 +131,9 @@ CFLAGS+= -trigraphs 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -166,6 +166,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 diff --git a/2001/williams/Makefile b/2001/williams/Makefile index 15a6d633b..1dd40184f 100644 --- a/2001/williams/Makefile +++ b/2001/williams/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/2004/Makefile b/2004/Makefile index 09bad5c78..6178fccae 100644 --- a/2004/Makefile +++ b/2004/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2004/anonymous/Makefile b/2004/anonymous/Makefile index 9bb8990f8..d47732224 100644 --- a/2004/anonymous/Makefile +++ b/2004/anonymous/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2004/arachnid/Makefile b/2004/arachnid/Makefile index 086efe238..41a29b014 100644 --- a/2004/arachnid/Makefile +++ b/2004/arachnid/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2004/burley/Makefile b/2004/burley/Makefile index 410ba9b6b..7cee7963c 100644 --- a/2004/burley/Makefile +++ b/2004/burley/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2004/gavare/Makefile b/2004/gavare/Makefile index f03e77b7c..6908be271 100644 --- a/2004/gavare/Makefile +++ b/2004/gavare/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.r3 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2004/gavin/Makefile b/2004/gavin/Makefile index 7f3990457..cae245c1b 100644 --- a/2004/gavin/Makefile +++ b/2004/gavin/Makefile @@ -133,9 +133,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -173,6 +173,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 diff --git a/2004/hibachi/Makefile b/2004/hibachi/Makefile index 47b742f93..5bc35933d 100644 --- a/2004/hibachi/Makefile +++ b/2004/hibachi/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 build/${PROG}: src ${RM} -rf build @@ -153,6 +153,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 diff --git a/2004/hoyle/Makefile b/2004/hoyle/Makefile index fe899597d..843f96a16 100644 --- a/2004/hoyle/Makefile +++ b/2004/hoyle/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2004/jdalbec/Makefile b/2004/jdalbec/Makefile index 1970cf7cf..2f686e600 100644 --- a/2004/jdalbec/Makefile +++ b/2004/jdalbec/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 @${RM} -f ${PROG}2.c $@ @@ -150,6 +150,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 diff --git a/2004/kopczynski/Makefile b/2004/kopczynski/Makefile index 56fa0b6cc..e5f73a49a 100644 --- a/2004/kopczynski/Makefile +++ b/2004/kopczynski/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2004/newbern/Makefile b/2004/newbern/Makefile index e8bf275f8..0bb36ca67 100644 --- a/2004/newbern/Makefile +++ b/2004/newbern/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2004/omoikane/Makefile b/2004/omoikane/Makefile index 4b5a744ea..e2203ac8f 100644 --- a/2004/omoikane/Makefile +++ b/2004/omoikane/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2004/schnitzi/Makefile b/2004/schnitzi/Makefile index ed8eae61e..ed5b74784 100644 --- a/2004/schnitzi/Makefile +++ b/2004/schnitzi/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2004/sds/Makefile b/2004/sds/Makefile index d1b532546..f30b8916e 100644 --- a/2004/sds/Makefile +++ b/2004/sds/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2004/vik1/Makefile b/2004/vik1/Makefile index 15e874253..c6e0581cd 100644 --- a/2004/vik1/Makefile +++ b/2004/vik1/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2004/vik2/Makefile b/2004/vik2/Makefile index aab2b9c7b..c6bec66f2 100644 --- a/2004/vik2/Makefile +++ b/2004/vik2/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} -DFNAME='"${PROG}.c"' '-DSTOP=_5' ${PROG}.c -o ${PROG} @@ -144,6 +144,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 + # The original vik2 source # # On some systems such as Linux, this source either fails diff --git a/2005/Makefile b/2005/Makefile index d85d63b76..6fc5ac7b7 100644 --- a/2005/Makefile +++ b/2005/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2005/aidan/Makefile b/2005/aidan/Makefile index 32ce2b704..473fda794 100644 --- a/2005/aidan/Makefile +++ b/2005/aidan/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2005/anon/Makefile b/2005/anon/Makefile index 88eb91d27..8617dfcbd 100644 --- a/2005/anon/Makefile +++ b/2005/anon/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2005/boutines/Makefile b/2005/boutines/Makefile index d48e815c6..368d78f74 100644 --- a/2005/boutines/Makefile +++ b/2005/boutines/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2005/chia/Makefile b/2005/chia/Makefile index fa24bf1c6..165f2b133 100644 --- a/2005/chia/Makefile +++ b/2005/chia/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2005/giljade/Makefile b/2005/giljade/Makefile index 947e574b8..7f0b5942d 100644 --- a/2005/giljade/Makefile +++ b/2005/giljade/Makefile @@ -130,9 +130,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "NOTE: this version cannot successfully run the self-test. Use make alt" @@ -157,6 +157,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 diff --git a/2005/jetro/Makefile b/2005/jetro/Makefile index 3a67d206e..d133d7f5c 100644 --- a/2005/jetro/Makefile +++ b/2005/jetro/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2005/klausler/Makefile b/2005/klausler/Makefile index f298ce6f1..56724c9b4 100644 --- a/2005/klausler/Makefile +++ b/2005/klausler/Makefile @@ -128,9 +128,9 @@ DICTIONARY= /usr/share/dict/words /usr/dict/words /usr/lib/dict/words /usr/share 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 dict.h +.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}: dict.h ${PROG}.c ${CC} ${CFLAGS} ${PROG}.c -o $@ ${LDFLAGS} @@ -168,6 +168,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 diff --git a/2005/mikeash/Makefile b/2005/mikeash/Makefile index e7c06d80d..9cee505aa 100644 --- a/2005/mikeash/Makefile +++ b/2005/mikeash/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2005/mynx/Makefile b/2005/mynx/Makefile index b4e26860f..77e3c1a4d 100644 --- a/2005/mynx/Makefile +++ b/2005/mynx/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2005/persano/Makefile b/2005/persano/Makefile index 2c22a0d96..a7d82d4cc 100644 --- a/2005/persano/Makefile +++ b/2005/persano/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2005/sykes/Makefile b/2005/sykes/Makefile index beaf58606..0ea84b33b 100644 --- a/2005/sykes/Makefile +++ b/2005/sykes/Makefile @@ -129,9 +129,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -155,6 +155,18 @@ pet.rom: ${ROM_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 diff --git a/2005/timwi/Makefile b/2005/timwi/Makefile index 7afea1f83..0a6703270 100644 --- a/2005/timwi/Makefile +++ b/2005/timwi/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -144,6 +144,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 diff --git a/2005/toledo/Makefile b/2005/toledo/Makefile index 75ed155ce..41e681b2e 100644 --- a/2005/toledo/Makefile +++ b/2005/toledo/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}2 ${PROG}3 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,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 diff --git a/2005/vik/Makefile b/2005/vik/Makefile index 92994a657..72ad6e456 100644 --- a/2005/vik/Makefile +++ b/2005/vik/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2005/vince/Makefile b/2005/vince/Makefile index 8e0c79e96..1dbdabb36 100644 --- a/2005/vince/Makefile +++ b/2005/vince/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/2006/Makefile b/2006/Makefile index 62e49f9c0..d179a81a5 100644 --- a/2006/Makefile +++ b/2006/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2006/birken/Makefile b/2006/birken/Makefile index 631ee41ce..6eb7c842e 100644 --- a/2006/birken/Makefile +++ b/2006/birken/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2006/borsanyi/Makefile b/2006/borsanyi/Makefile index 66a6cf236..518e3e198 100644 --- a/2006/borsanyi/Makefile +++ b/2006/borsanyi/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2006/grothe/Makefile b/2006/grothe/Makefile index f1544238e..bc42411e6 100644 --- a/2006/grothe/Makefile +++ b/2006/grothe/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -144,6 +144,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 diff --git a/2006/hamre/Makefile b/2006/hamre/Makefile index 3dfa49d59..79ef4bedf 100644 --- a/2006/hamre/Makefile +++ b/2006/hamre/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2006/meyer/Makefile b/2006/meyer/Makefile index d4f8e5913..1f467a678 100644 --- a/2006/meyer/Makefile +++ b/2006/meyer/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2006/monge/Makefile b/2006/monge/Makefile index 80201a3ba..ecf152d1f 100644 --- a/2006/monge/Makefile +++ b/2006/monge/Makefile @@ -130,9 +130,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,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 diff --git a/2006/night/Makefile b/2006/night/Makefile index b4e724359..4ccbfa29d 100644 --- a/2006/night/Makefile +++ b/2006/night/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "This next step may take some time to run:" @@ -155,6 +155,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 diff --git a/2006/sloane/Makefile b/2006/sloane/Makefile index c681db6ca..458cc5d87 100644 --- a/2006/sloane/Makefile +++ b/2006/sloane/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,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 diff --git a/2006/stewart/Makefile b/2006/stewart/Makefile index 292bf275b..5607122c6 100644 --- a/2006/stewart/Makefile +++ b/2006/stewart/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2006/sykes1/Makefile b/2006/sykes1/Makefile index 1622c372b..0e89dcba8 100644 --- a/2006/sykes1/Makefile +++ b/2006/sykes1/Makefile @@ -128,9 +128,9 @@ CFLAGS+= -funroll-loops 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -154,6 +154,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 diff --git a/2006/sykes2/Makefile b/2006/sykes2/Makefile index 41517c938..bd93e0f50 100644 --- a/2006/sykes2/Makefile +++ b/2006/sykes2/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2006/toledo1/Makefile b/2006/toledo1/Makefile index ef60536a4..0155ac681 100644 --- a/2006/toledo1/Makefile +++ b/2006/toledo1/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2006/toledo2/Makefile b/2006/toledo2/Makefile index 8e14fad56..c58614bbb 100644 --- a/2006/toledo2/Makefile +++ b/2006/toledo2/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/2006/toledo3/Makefile b/2006/toledo3/Makefile index 82c263c10..b981e3c4e 100644 --- a/2006/toledo3/Makefile +++ b/2006/toledo3/Makefile @@ -129,9 +129,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -157,6 +157,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 diff --git a/2011/Makefile b/2011/Makefile index 45df459b1..2be3d8760 100644 --- a/2011/Makefile +++ b/2011/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2011/akari/Makefile b/2011/akari/Makefile index d3dbde40f..ca9ccc167 100644 --- a/2011/akari/Makefile +++ b/2011/akari/Makefile @@ -129,9 +129,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -169,6 +169,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 diff --git a/2011/blakely/Makefile b/2011/blakely/Makefile index d5b8cca5d..e6c8692d4 100644 --- a/2011/blakely/Makefile +++ b/2011/blakely/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2011/borsanyi/Makefile b/2011/borsanyi/Makefile index 9519a35e3..d019c7e99 100644 --- a/2011/borsanyi/Makefile +++ b/2011/borsanyi/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2011/dlowe/Makefile b/2011/dlowe/Makefile index 01112e394..1d2e54295 100644 --- a/2011/dlowe/Makefile +++ b/2011/dlowe/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2011/eastman/Makefile b/2011/eastman/Makefile index 33d192e57..1a2ab789f 100644 --- a/2011/eastman/Makefile +++ b/2011/eastman/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2011/fredriksson/Makefile b/2011/fredriksson/Makefile index ad086d8a5..bd0a5632f 100644 --- a/2011/fredriksson/Makefile +++ b/2011/fredriksson/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2011/goren/Makefile b/2011/goren/Makefile index 1f026c64f..1134ece82 100644 --- a/2011/goren/Makefile +++ b/2011/goren/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/2011/hamaji/Makefile b/2011/hamaji/Makefile index bf5633708..fdd619e61 100644 --- a/2011/hamaji/Makefile +++ b/2011/hamaji/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2011/hou/Makefile b/2011/hou/Makefile index 69e8edc82..b7a370496 100644 --- a/2011/hou/Makefile +++ b/2011/hou/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2011/konno/Makefile b/2011/konno/Makefile index 7038d16c1..15cf7c686 100644 --- a/2011/konno/Makefile +++ b/2011/konno/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2011/richards/Makefile b/2011/richards/Makefile index 4881b3f94..c52341c26 100644 --- a/2011/richards/Makefile +++ b/2011/richards/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2011/toledo/Makefile b/2011/toledo/Makefile index fce8910c8..fc50d1da0 100644 --- a/2011/toledo/Makefile +++ b/2011/toledo/Makefile @@ -131,9 +131,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/2011/vik/Makefile b/2011/vik/Makefile index e5df5c87b..2f3a2cff1 100644 --- a/2011/vik/Makefile +++ b/2011/vik/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2011/zucker/Makefile b/2011/zucker/Makefile index f8180811d..4e04ee57c 100644 --- a/2011/zucker/Makefile +++ b/2011/zucker/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2012/Makefile b/2012/Makefile index 5dead3f5d..95f2c379d 100644 --- a/2012/Makefile +++ b/2012/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2012/blakely/Makefile b/2012/blakely/Makefile index a38e97164..ba55811aa 100644 --- a/2012/blakely/Makefile +++ b/2012/blakely/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2012/deckmyn/Makefile b/2012/deckmyn/Makefile index 52d787f0c..67fed07ae 100644 --- a/2012/deckmyn/Makefile +++ b/2012/deckmyn/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2012/dlowe/Makefile b/2012/dlowe/Makefile index 2872a1e27..87a900657 100644 --- a/2012/dlowe/Makefile +++ b/2012/dlowe/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2012/endoh1/Makefile b/2012/endoh1/Makefile index 30f248dbb..1db0d0d6e 100644 --- a/2012/endoh1/Makefile +++ b/2012/endoh1/Makefile @@ -138,9 +138,9 @@ V=8 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -166,6 +166,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 diff --git a/2012/endoh2/Makefile b/2012/endoh2/Makefile index a8015168e..395c5592d 100644 --- a/2012/endoh2/Makefile +++ b/2012/endoh2/Makefile @@ -134,9 +134,9 @@ ALT_C= pi.c 314.c 3141.c 31415.c 314159.c 3141592.c \ 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -305,6 +305,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 diff --git a/2012/grothe/Makefile b/2012/grothe/Makefile index 5eb7e9b1d..25bcba665 100644 --- a/2012/grothe/Makefile +++ b/2012/grothe/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2012/hamano/Makefile b/2012/hamano/Makefile index 2ec3cb93a..777757912 100644 --- a/2012/hamano/Makefile +++ b/2012/hamano/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2012/hou/Makefile b/2012/hou/Makefile index 1cca95576..e6bf7cb7e 100644 --- a/2012/hou/Makefile +++ b/2012/hou/Makefile @@ -129,9 +129,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -151,6 +151,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 diff --git a/2012/kang/Makefile b/2012/kang/Makefile index 2335deed9..53ae75f99 100644 --- a/2012/kang/Makefile +++ b/2012/kang/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2012/konno/Makefile b/2012/konno/Makefile index 5b7f017f5..4017cd1ad 100644 --- a/2012/konno/Makefile +++ b/2012/konno/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -151,6 +151,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 diff --git a/2012/omoikane/Makefile b/2012/omoikane/Makefile index 713375604..45cdc8bf2 100644 --- a/2012/omoikane/Makefile +++ b/2012/omoikane/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2012/tromp/Makefile b/2012/tromp/Makefile index 7a9366638..cbef1a337 100644 --- a/2012/tromp/Makefile +++ b/2012/tromp/Makefile @@ -129,9 +129,9 @@ ALT_TARGET= ${ENTRY}32 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 ${CC} ${CFLAGS} -m64 -DInt=long -DX=8 $< -o $@ @@ -158,6 +158,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 diff --git a/2012/vik/Makefile b/2012/vik/Makefile index cac7f0682..6719018cf 100644 --- a/2012/vik/Makefile +++ b/2012/vik/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2012/zeitak/Makefile b/2012/zeitak/Makefile index 9273c96ed..15743c509 100644 --- a/2012/zeitak/Makefile +++ b/2012/zeitak/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,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 diff --git a/2013/Makefile b/2013/Makefile index 427ce1b15..332c805c9 100644 --- a/2013/Makefile +++ b/2013/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2013/birken/Makefile b/2013/birken/Makefile index a59256660..b705650f8 100644 --- a/2013/birken/Makefile +++ b/2013/birken/Makefile @@ -131,9 +131,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -154,6 +154,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 diff --git a/2013/cable1/Makefile b/2013/cable1/Makefile index aa254fa26..40ace2969 100644 --- a/2013/cable1/Makefile +++ b/2013/cable1/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2013/cable2/Makefile b/2013/cable2/Makefile index 405bf0dbe..9d3112241 100644 --- a/2013/cable2/Makefile +++ b/2013/cable2/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2013/cable3/Makefile b/2013/cable3/Makefile index a66f32c5b..879b54684 100644 --- a/2013/cable3/Makefile +++ b/2013/cable3/Makefile @@ -134,9 +134,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -159,6 +159,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 diff --git a/2013/dlowe/Makefile b/2013/dlowe/Makefile index b50128bf1..1f101b391 100644 --- a/2013/dlowe/Makefile +++ b/2013/dlowe/Makefile @@ -122,9 +122,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2013/endoh1/Makefile b/2013/endoh1/Makefile index 8167dcf30..e1cffc7a3 100644 --- a/2013/endoh1/Makefile +++ b/2013/endoh1/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 @echo "This next step may take some time to complete:" @@ -160,6 +160,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 diff --git a/2013/endoh2/Makefile b/2013/endoh2/Makefile index b24d6f470..c157ccbda 100644 --- a/2013/endoh2/Makefile +++ b/2013/endoh2/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -187,6 +187,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 diff --git a/2013/endoh3/Makefile b/2013/endoh3/Makefile index 018f072f0..f323fc5c5 100644 --- a/2013/endoh3/Makefile +++ b/2013/endoh3/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2013/endoh4/Makefile b/2013/endoh4/Makefile index e9fbefdb5..1584b5d44 100644 --- a/2013/endoh4/Makefile +++ b/2013/endoh4/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2013/hou/Makefile b/2013/hou/Makefile index 2a855ebb4..2d3d2d1ea 100644 --- a/2013/hou/Makefile +++ b/2013/hou/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2013/mills/Makefile b/2013/mills/Makefile index 1ba794331..d4fae6070 100644 --- a/2013/mills/Makefile +++ b/2013/mills/Makefile @@ -131,9 +131,9 @@ CFLAGS += -ffast-math 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/2013/misaka/Makefile b/2013/misaka/Makefile index ec3458397..b45295507 100644 --- a/2013/misaka/Makefile +++ b/2013/misaka/Makefile @@ -131,9 +131,9 @@ OTHER_C= misaka2.c misaka3.c misaka4.c misaka5.c \ 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -221,6 +221,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 diff --git a/2013/morgan1/Makefile b/2013/morgan1/Makefile index 85bdda579..e97de3135 100644 --- a/2013/morgan1/Makefile +++ b/2013/morgan1/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2013/morgan2/Makefile b/2013/morgan2/Makefile index a46ce2ea3..eea76d4e3 100644 --- a/2013/morgan2/Makefile +++ b/2013/morgan2/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2013/robison/Makefile b/2013/robison/Makefile index 215c701d4..f0bdea787 100644 --- a/2013/robison/Makefile +++ b/2013/robison/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2014/Makefile b/2014/Makefile index 81f081941..2f8f2771c 100644 --- a/2014/Makefile +++ b/2014/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2014/birken/Makefile b/2014/birken/Makefile index 6a633a513..91b06d5c2 100644 --- a/2014/birken/Makefile +++ b/2014/birken/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2014/deak/Makefile b/2014/deak/Makefile index 257af01a8..48293456e 100644 --- a/2014/deak/Makefile +++ b/2014/deak/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2014/endoh1/Makefile b/2014/endoh1/Makefile index 14ff1c4a6..9f1e140c5 100644 --- a/2014/endoh1/Makefile +++ b/2014/endoh1/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -164,6 +164,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 diff --git a/2014/endoh2/Makefile b/2014/endoh2/Makefile index 30e181a21..585d002ce 100644 --- a/2014/endoh2/Makefile +++ b/2014/endoh2/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2014/maffiodo1/Makefile b/2014/maffiodo1/Makefile index 335231466..7222ed10c 100644 --- a/2014/maffiodo1/Makefile +++ b/2014/maffiodo1/Makefile @@ -131,9 +131,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/2014/maffiodo2/Makefile b/2014/maffiodo2/Makefile index 63f75b0d8..0a5c7ac46 100644 --- a/2014/maffiodo2/Makefile +++ b/2014/maffiodo2/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2014/morgan/Makefile b/2014/morgan/Makefile index a3d734091..79feee6fb 100644 --- a/2014/morgan/Makefile +++ b/2014/morgan/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2014/sinon/Makefile b/2014/sinon/Makefile index 2fb0b9191..6196aaac4 100644 --- a/2014/sinon/Makefile +++ b/2014/sinon/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2014/skeggs/Makefile b/2014/skeggs/Makefile index 4d16cbb2a..ab02b2d5c 100644 --- a/2014/skeggs/Makefile +++ b/2014/skeggs/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2014/vik/Makefile b/2014/vik/Makefile index a64509c85..ba00b3799 100644 --- a/2014/vik/Makefile +++ b/2014/vik/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2014/wiedijk/Makefile b/2014/wiedijk/Makefile index 0b024df2d..a7b5e0e05 100644 --- a/2014/wiedijk/Makefile +++ b/2014/wiedijk/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2015/Makefile b/2015/Makefile index 27e1a7487..1e3242261 100644 --- a/2015/Makefile +++ b/2015/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2015/burton/Makefile b/2015/burton/Makefile index 906208e7a..2ad558712 100644 --- a/2015/burton/Makefile +++ b/2015/burton/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,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 diff --git a/2015/dogon/Makefile b/2015/dogon/Makefile index 56c694cfe..6b4a90910 100644 --- a/2015/dogon/Makefile +++ b/2015/dogon/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2015/duble/Makefile b/2015/duble/Makefile index 4547613f7..fcbf78ecf 100644 --- a/2015/duble/Makefile +++ b/2015/duble/Makefile @@ -128,9 +128,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,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 diff --git a/2015/endoh1/Makefile b/2015/endoh1/Makefile index b20ca0ab9..557c2c085 100644 --- a/2015/endoh1/Makefile +++ b/2015/endoh1/Makefile @@ -141,6 +141,10 @@ OREGONATOR_MODEL = -Delta_u="Du*laplacian(u)+(u-u*u-F*v*(u-Q)/(u+Q))/E" \ all: ${TARGET} ${DATA} @${TRUE} +.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}: gray-scott-1 ${RM} -f $@ ${CP} gray-scott-1 $@ @@ -208,6 +212,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 diff --git a/2015/endoh2/Makefile b/2015/endoh2/Makefile index c9b831040..70cea3ecd 100644 --- a/2015/endoh2/Makefile +++ b/2015/endoh2/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2015/endoh3/Makefile b/2015/endoh3/Makefile index 12c94a64c..5b3e5ff63 100644 --- a/2015/endoh3/Makefile +++ b/2015/endoh3/Makefile @@ -126,9 +126,9 @@ BACK_TO= mullender.c all: data ${TARGET} @${TRUE} -.PHONY: all alt mullender back_to data everything \ - clean clobber install love haste waste maker \ - easter_egg sandwich supernova deep_magic magic \ +.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 charon pluto ${PROG}: ${PROG}.c @@ -153,6 +153,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 diff --git a/2015/endoh4/Makefile b/2015/endoh4/Makefile index 569f69c52..43c4fbe60 100644 --- a/2015/endoh4/Makefile +++ b/2015/endoh4/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2015/hou/Makefile b/2015/hou/Makefile index 35ab78e3d..b95ae0f69 100644 --- a/2015/hou/Makefile +++ b/2015/hou/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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}: prebuild if [ `./prebuild < prog.c | cut -c-7` == 'non-ISO' ]; then \ @@ -153,6 +153,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 diff --git a/2015/howe/Makefile b/2015/howe/Makefile index 7fa4148d5..93a6b1218 100644 --- a/2015/howe/Makefile +++ b/2015/howe/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -156,6 +156,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 diff --git a/2015/mills1/Makefile b/2015/mills1/Makefile index d8c64b1e1..73f2665d6 100644 --- a/2015/mills1/Makefile +++ b/2015/mills1/Makefile @@ -286,9 +286,9 @@ endif 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -308,6 +308,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 diff --git a/2015/mills2/Makefile b/2015/mills2/Makefile index 1a1320456..43fdfab46 100644 --- a/2015/mills2/Makefile +++ b/2015/mills2/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2015/muth/Makefile b/2015/muth/Makefile index dabc44e54..3e63abd64 100644 --- a/2015/muth/Makefile +++ b/2015/muth/Makefile @@ -133,9 +133,9 @@ TAPE_SET= tape_15_50.h tape_77_55.h tape_empty.h tape_five.h all: data ${TARGET} ${MACHINE_SET} ${TAPE_SET} @${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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -163,6 +163,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 diff --git a/2015/schweikhardt/Makefile b/2015/schweikhardt/Makefile index 5a2c73805..7ffbc493a 100644 --- a/2015/schweikhardt/Makefile +++ b/2015/schweikhardt/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2015/yang/Makefile b/2015/yang/Makefile index c2ac7c9bf..40e1ccdb1 100644 --- a/2015/yang/Makefile +++ b/2015/yang/Makefile @@ -133,9 +133,9 @@ MAY_NEED_GPLUSPLUS= g++ 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -174,6 +174,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 diff --git a/2018/Makefile b/2018/Makefile index cee812477..e10f20b1c 100644 --- a/2018/Makefile +++ b/2018/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2018/algmyr/Makefile b/2018/algmyr/Makefile index d81e5d4c9..8b41d18dd 100644 --- a/2018/algmyr/Makefile +++ b/2018/algmyr/Makefile @@ -127,9 +127,9 @@ ALT_TARGET= ${PROG}.alt 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 @echo "NOTE: this program will crash if a file specified cannot be opened." @@ -150,6 +150,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 diff --git a/2018/anderson/Makefile b/2018/anderson/Makefile index 2868093e7..a7f0ad351 100644 --- a/2018/anderson/Makefile +++ b/2018/anderson/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -149,6 +149,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 diff --git a/2018/bellard/Makefile b/2018/bellard/Makefile index c31ec9766..784945324 100644 --- a/2018/bellard/Makefile +++ b/2018/bellard/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2018/burton1/Makefile b/2018/burton1/Makefile index b464b518f..7fda28eb2 100644 --- a/2018/burton1/Makefile +++ b/2018/burton1/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -150,6 +150,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 diff --git a/2018/burton2/Makefile b/2018/burton2/Makefile index 635d98e76..7790b4290 100644 --- a/2018/burton2/Makefile +++ b/2018/burton2/Makefile @@ -141,9 +141,9 @@ CFLAGS+= -trigraphs 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 keywords ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -182,6 +182,18 @@ test: prog tac runtest fixed_iocccsize ${EXTRA_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 diff --git a/2018/ciura/Makefile b/2018/ciura/Makefile index 0d8be0f9d..f2be083df 100644 --- a/2018/ciura/Makefile +++ b/2018/ciura/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2018/endoh1/Makefile b/2018/endoh1/Makefile index 1e6e5c179..bc3634f7b 100644 --- a/2018/endoh1/Makefile +++ b/2018/endoh1/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2018/endoh2/Makefile b/2018/endoh2/Makefile index 5ff3bef03..98f018107 100644 --- a/2018/endoh2/Makefile +++ b/2018/endoh2/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -169,6 +169,18 @@ python3: ${PROG} 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 diff --git a/2018/ferguson/Makefile b/2018/ferguson/Makefile index 543508d1b..d0b53d187 100644 --- a/2018/ferguson/Makefile +++ b/2018/ferguson/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt weasel.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -157,6 +157,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 diff --git a/2018/giles/Makefile b/2018/giles/Makefile index 0fa229ea7..686f3b684 100644 --- a/2018/giles/Makefile +++ b/2018/giles/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2018/hou/Makefile b/2018/hou/Makefile index 91c9e3a82..037c7c86e 100644 --- a/2018/hou/Makefile +++ b/2018/hou/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2018/mills/Makefile b/2018/mills/Makefile index c5e727d59..6889a1f9e 100644 --- a/2018/mills/Makefile +++ b/2018/mills/Makefile @@ -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 diff --git a/2018/poikola/Makefile b/2018/poikola/Makefile index d82da5b7b..e05a377db 100644 --- a/2018/poikola/Makefile +++ b/2018/poikola/Makefile @@ -127,9 +127,9 @@ DOCS= poikola.tex 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -153,6 +153,18 @@ docs: ${DOCS} 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 diff --git a/2018/vokes/Makefile b/2018/vokes/Makefile index 64e61cb67..09eb3439a 100644 --- a/2018/vokes/Makefile +++ b/2018/vokes/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2018/yang/Makefile b/2018/yang/Makefile index 10f6cea4a..e90d8ae46 100644 --- a/2018/yang/Makefile +++ b/2018/yang/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 left: ${PROG}.c ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -266,6 +266,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 diff --git a/2019/Makefile b/2019/Makefile index 5c1ecfd65..7d4a2bacc 100644 --- a/2019/Makefile +++ b/2019/Makefile @@ -61,9 +61,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -107,6 +107,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2019/adamovsky/Makefile b/2019/adamovsky/Makefile index fd3987320..bbe5a8fb2 100644 --- a/2019/adamovsky/Makefile +++ b/2019/adamovsky/Makefile @@ -130,9 +130,9 @@ CFLAGS+= -trigraphs 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -165,6 +165,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 diff --git a/2019/burton/Makefile b/2019/burton/Makefile index 31727e6f1..338f1370b 100644 --- a/2019/burton/Makefile +++ b/2019/burton/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -160,6 +160,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 diff --git a/2019/ciura/Makefile b/2019/ciura/Makefile index df1802c06..a05351614 100644 --- a/2019/ciura/Makefile +++ b/2019/ciura/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG} 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2019/diels-grabsch1/Makefile b/2019/diels-grabsch1/Makefile index 504eb684a..13e74030a 100644 --- a/2019/diels-grabsch1/Makefile +++ b/2019/diels-grabsch1/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2019/diels-grabsch2/Makefile b/2019/diels-grabsch2/Makefile index 81ab7d64f..410f2634f 100644 --- a/2019/diels-grabsch2/Makefile +++ b/2019/diels-grabsch2/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2019/dogon/Makefile b/2019/dogon/Makefile index c24117bd7..6e303b296 100644 --- a/2019/dogon/Makefile +++ b/2019/dogon/Makefile @@ -132,9 +132,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -157,6 +157,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 diff --git a/2019/duble/Makefile b/2019/duble/Makefile index f34656e90..ac8097c45 100644 --- a/2019/duble/Makefile +++ b/2019/duble/Makefile @@ -133,9 +133,9 @@ OS_SET= Linux FreeBSD Darwin 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}: ${MAKE} `${UNAME}` @@ -228,6 +228,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 diff --git a/2019/endoh/Makefile b/2019/endoh/Makefile index a55f619af..7d35dd305 100644 --- a/2019/endoh/Makefile +++ b/2019/endoh/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} -g $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2019/giles/Makefile b/2019/giles/Makefile index 8388ced61..4f7cdb841 100644 --- a/2019/giles/Makefile +++ b/2019/giles/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2019/karns/Makefile b/2019/karns/Makefile index 8d75ad678..6d53a2199 100644 --- a/2019/karns/Makefile +++ b/2019/karns/Makefile @@ -132,9 +132,9 @@ COPT+= -O0 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -159,6 +159,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 diff --git a/2019/lynn/Makefile b/2019/lynn/Makefile index a640cf2ec..9b9a4998f 100644 --- a/2019/lynn/Makefile +++ b/2019/lynn/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2019/mills/Makefile b/2019/mills/Makefile index 4e5534b08..0d5f32088 100644 --- a/2019/mills/Makefile +++ b/2019/mills/Makefile @@ -283,9 +283,9 @@ prog = ${rnn1} 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 ${TARGET}: ${PROG}.c Makefile ${INPUTS} ${CC} ${CFLAGS} -o $@ $< $($@) ${LDFLAGS} @@ -328,6 +328,18 @@ Eugene_Onegin.output.txt: Eugene_Onegin.cp11_1.188 ${generator} 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 diff --git a/2019/poikola/Makefile b/2019/poikola/Makefile index 44d02e85f..b5dda7cd3 100644 --- a/2019/poikola/Makefile +++ b/2019/poikola/Makefile @@ -127,9 +127,9 @@ DOCS= poikola.tex 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -152,6 +152,18 @@ docs: ${DOCS} 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 diff --git a/2019/yang/Makefile b/2019/yang/Makefile index 8982220fb..d63ca34b9 100644 --- a/2019/yang/Makefile +++ b/2019/yang/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2020/Makefile b/2020/Makefile index 947579008..9e9516188 100644 --- a/2020/Makefile +++ b/2020/Makefile @@ -62,9 +62,9 @@ all: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' -.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 # alternative executable # @@ -108,6 +108,34 @@ everything: done @echo '=-=-= ${YEAR} complete make $@ =-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-= ${YEAR} begin make $@ =-=-=' + @echo + @for i in ${WINNERS} ; do \ + echo "=-= start ${YEAR}/$$i =-="; \ + echo "(cd $$i && $(MAKE) $@)"; \ + (cd $$i && $(MAKE) $@); \ + echo "=-= end ${YEAR}/$$i =-="; \ + echo; \ + done + @echo '=-=-= ${YEAR} complete make $@ =-=-=' + ############### # utility rules diff --git a/2020/burton/Makefile b/2020/burton/Makefile index 23e43ac45..5f0092e39 100644 --- a/2020/burton/Makefile +++ b/2020/burton/Makefile @@ -136,9 +136,9 @@ _S=0 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 @echo "NOTE: this entry will crash on no arg specified." @@ -169,6 +169,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 diff --git a/2020/carlini/Makefile b/2020/carlini/Makefile index 2c0a9f0c9..04658e68b 100644 --- a/2020/carlini/Makefile +++ b/2020/carlini/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -145,6 +145,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 diff --git a/2020/endoh1/Makefile b/2020/endoh1/Makefile index 533d3d984..8f5a7849d 100644 --- a/2020/endoh1/Makefile +++ b/2020/endoh1/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -151,6 +151,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 diff --git a/2020/endoh2/Makefile b/2020/endoh2/Makefile index df1161e0c..be7c799c0 100644 --- a/2020/endoh2/Makefile +++ b/2020/endoh2/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2020/endoh3/Makefile b/2020/endoh3/Makefile index 7194942c6..2fada6d2a 100644 --- a/2020/endoh3/Makefile +++ b/2020/endoh3/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -155,6 +155,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 diff --git a/2020/ferguson1/Makefile b/2020/ferguson1/Makefile index 5b90a45dc..83cd5edf8 100644 --- a/2020/ferguson1/Makefile +++ b/2020/ferguson1/Makefile @@ -132,9 +132,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -179,6 +179,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 diff --git a/2020/ferguson2/Makefile b/2020/ferguson2/Makefile index 38dffdb42..f356ec6af 100644 --- a/2020/ferguson2/Makefile +++ b/2020/ferguson2/Makefile @@ -126,9 +126,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -151,6 +151,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 diff --git a/2020/giles/Makefile b/2020/giles/Makefile index cace0e665..dfe9525c5 100644 --- a/2020/giles/Makefile +++ b/2020/giles/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2020/kurdyukov1/Makefile b/2020/kurdyukov1/Makefile index 82d6a8bcb..178f15ebc 100644 --- a/2020/kurdyukov1/Makefile +++ b/2020/kurdyukov1/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -148,6 +148,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 diff --git a/2020/kurdyukov2/Makefile b/2020/kurdyukov2/Makefile index c8d868f84..c01598d14 100644 --- a/2020/kurdyukov2/Makefile +++ b/2020/kurdyukov2/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} ${LIBJPEG} @@ -156,6 +156,18 @@ data: ${DATA} everything: all alt +# 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 ############### diff --git a/2020/kurdyukov3/Makefile b/2020/kurdyukov3/Makefile index ab57cf8f9..bbf4a01a7 100644 --- a/2020/kurdyukov3/Makefile +++ b/2020/kurdyukov3/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= ${PROG}.alt ${PROG}.extra 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -151,6 +151,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 diff --git a/2020/kurdyukov4/Makefile b/2020/kurdyukov4/Makefile index e2a90e6f7..47ed13fe8 100644 --- a/2020/kurdyukov4/Makefile +++ b/2020/kurdyukov4/Makefile @@ -123,9 +123,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -151,6 +151,18 @@ ${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 diff --git a/2020/otterness/Makefile b/2020/otterness/Makefile index 426821c73..53c9cb981 100644 --- a/2020/otterness/Makefile +++ b/2020/otterness/Makefile @@ -124,9 +124,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -146,6 +146,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 diff --git a/2020/tsoj/Makefile b/2020/tsoj/Makefile index c656e18ca..b6e46e682 100644 --- a/2020/tsoj/Makefile +++ b/2020/tsoj/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/2020/yang/Makefile b/2020/yang/Makefile index fbd961cb5..e8e9baef9 100644 --- a/2020/yang/Makefile +++ b/2020/yang/Makefile @@ -125,9 +125,9 @@ ALT_TARGET= 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 ${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} @@ -147,6 +147,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 diff --git a/Makefile b/Makefile index 24a3a7287..115e4e006 100644 --- a/Makefile +++ b/Makefile @@ -51,9 +51,9 @@ all: done @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-=' -.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 # alternative executable # @@ -91,6 +91,30 @@ everything: done @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-=' +# diff orig source and source +# +orig_prog_diff: + @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-=' + @-for i in [12][0-9][0-9][0-9]; do \ + if [ -f $$i/Makefile ]; then \ + echo "cd $$i; make $@"; \ + (cd $$i; make $@); \ + fi; \ + done + @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-=' + +# diff alt source and source +# +alt_prog_diff: + @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-=' + @-for i in [12][0-9][0-9][0-9]; do \ + if [ -f $$i/Makefile ]; then \ + echo "cd $$i; make $@"; \ + (cd $$i; make $@); \ + fi; \ + done + @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-=' + ############### # utility rules