diff --git a/1337.mk b/1337.mk
index d28b4dc3f..c385144f8 100644
--- a/1337.mk
+++ b/1337.mk
@@ -1,15 +1,101 @@
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c: ${PROG}.c
+ @if which "${GINDENT}" >/dev/null 2>&1; then \
+ echo ${RM} -f $@; \
+ ${RM} -f $@; \
+ echo "${GINDENT} < $< > $@"; \
+ ${GINDENT} < $< > $@; \
+ elif which "${INDENT}" >/dev/null 2>&1; then \
+ echo ${RM} -f $@; \
+ ${RM} -f $@; \
+ echo "${INDENT} < $< > $@"; \
+ ${INDENT} < $< > $@; \
+ else \
+ echo "no indent tool found, ident $< yourself, sorry"; \
+ echo "exit 17"; \
+ exit 17; \
+ fi
+
+indent_clean: clean
+ @-if [ -f indent.c ]; then \
+ echo ${RM} -f indent.c; \
+ ${RM} -f indent.c; \
+ fi
+
+indent_clobber: indent_clean clobber
+ @-if [ -e sandwich ]; then \
+ ${RM} -f sandwich; \
+ echo 'ate sandwich'; \
+ fi
+
+install:
+ @echo "Dr. Spock says that is not logical!"
+ @${TRUE}
+
+
+#####################
+# make a difference #
+#####################
+
+.PHONY: diff_orig_prog diff_prog_orig diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig
+
+# diff orig source and source
+#
+diff_orig_prog: ${PROG}.orig.c ${PROG}.c
+ @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
+
+# diff source and orig source
+#
+diff_prog_orig: ${PROG}.c ${PROG}.orig.c
+ @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
+
+# diff alt source and source
+#
+diff_alt_prog: ${PROG}.c
+ @-if [[ -e ${PROG}.alt.c ]]; then \
+ ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
+ fi
+
+# diff source and alt source
+#
+diff_prog_alt: ${PROG}.c
+ @-if [[ -e ${PROG}.alt.c ]]; then \
+ ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
+ fi
+
+# diff orig and alt
+#
+diff_orig_alt: ${PROG}.orig.c
+ @-if [[ -e ${PROG}.alt.c ]]; then \
+ ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
+ fi
+
+# diff alt and orig
+diff_alt_orig:
+ @-if [[ -e ${PROG}.alt.c ]]; then \
+ ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
+ fi
+
+
#############################################################
# NOTE: 'Don't Panic' if you don't understand the stuff below
#############################################################
-.PHONY: love haste waste maker easter_egg sandwich supernova more_magic magic charon pluto
-
##################
# 133t hacker rulz
##################
-#
+
+.PHONY: love haste waste maker easter_egg sandwich supernova more_magic magic charon pluto
+
love:
@echo 'not war?'
diff --git a/1984/Makefile b/1984/Makefile
index 20c21dfcf..0e6cf6a42 100644
--- a/1984/Makefile
+++ b/1984/Makefile
@@ -228,30 +228,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -291,6 +267,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1984/anonymous/Makefile b/1984/anonymous/Makefile
index 4d002180f..032483128 100644
--- a/1984/anonymous/Makefile
+++ b/1984/anonymous/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -157,89 +154,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1984/decot/Makefile b/1984/decot/Makefile
index e493b98ec..04f096388 100644
--- a/1984/decot/Makefile
+++ b/1984/decot/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -161,89 +158,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1984/laman/Makefile b/1984/laman/Makefile
index 3d14e2a75..e927ad73d 100644
--- a/1984/laman/Makefile
+++ b/1984/laman/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "NOTE: this entry will likely crash or do something else without an arg."
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1984/mullender/Makefile b/1984/mullender/Makefile
index d45b12a1f..66f9d6f8e 100644
--- a/1984/mullender/Makefile
+++ b/1984/mullender/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "Warning: this entry is likely to fail and/or dump core on any computer other" \
@@ -167,91 +164,18 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f core
${RM} -f gentab
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1985/Makefile b/1985/Makefile
index def33cc1c..05d857711 100644
--- a/1985/Makefile
+++ b/1985/Makefile
@@ -228,30 +228,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -291,6 +267,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1985/applin/Makefile b/1985/applin/Makefile
index 4ecfd9f57..759892bcd 100644
--- a/1985/applin/Makefile
+++ b/1985/applin/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,164 +146,20 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
-##################
-# 133t hacker rulz
-##################
-#
-love:
- @echo 'not war?'
+######################################
+# optional include of 1337 hacker rulz
+######################################
-waste:
- @echo $@
-
-haste:
- ${MAKE} waste
-
-maker: haste
- @echo 'Participate in a maker faire'
- ${MAKE} love
-
-easter_egg: maker
- @echo "You are expected to often misunderstand this $${RANDOM} magic, Eggy!"
- @echo "chongo '' /\\oo/\\"
- @echo "p.s.: Careful with That Axe, Eugene!"
-
-sandwich: easter_egg
- @if [ `id -u` -eq 0 ]; then \
- echo 'Okay.'; \
- echo "$${RANDOM}`date +%s`$${RANDOM}" > $@; \
- else \
- echo 'What? Make it yourself.'; \
- echo "Did you forget the magic word?"; \
- fi
-
-# Understand the history of the Homebrew Computer Club
-# as well as the West Coast Computer Faire and
-# you might be confused different. :-)
-#
-supernova: sandwich
- @-if [ -r .code_anal ]; then \
- ${RM} -f .code_anal_v6; \
- else \
- echo "Planet deniers, like some members of the IAU, are so cute when they try to defend their logic"; \
- fi
- @echo "A $@ helps ${MAKE} the elements that help form planets"
-
-deep_magic: supernova
- @-if [ -r .code_anal ]; then \
- ccode_analysis --deep_magic 7889066cdbdf09b0408021754586e895be641cc9be29e7eafd3ca65359541f17 \
- --FNV1a_hash_512_bit -v2 "${PROG}" "${PROG}.c"; \
- else \
- echo "Wrong! Do it again!"; \
- sleep 1; \
- echo "Wrong! Do it again!"; \
- sleep 1; \
- echo "Wrong! Do it again!"; \
- fi
-
-magic: deep_magic
- @-if [ -r .code_anal ]; then \
- ccode_analysis --level 20003 --mode 5717175 --FNV1a_hash_512_bit -v2 "${PROG}" "${PROG}.c"; \
- else \
- echo "If you don't eat yer meat, you can't have any pudding!"; \
- echo "How can you have any pudding if you don't eat yer meat?!"; \
- fi
-
-# The IOCCC resident astronomer states
-#
-charon: magic
- @echo "$@ is a dwarf planet"
- @echo "Dwarf planets are a type of planet"
- @echo "Therefore IAU, $@ is a planet"
-
-pluto: charon
- @echo "See https://www.hou.usra.edu/meetings/lpsc2017/pdf/1448.pdf for a good definition of a planet"
- @echo "$@ is a dwarf planet"
- @echo "Dwarf planets are a type of planet"
- @echo "Therefore, $@ is a planet"
- @echo "The geophysical definition of planet gives us ~110 planets in our solar system"
+-include 1337.mk ../1337.mk ../../1337.mk
diff --git a/1985/august/Makefile b/1985/august/Makefile
index 3d6f71c45..c51df4e53 100644
--- a/1985/august/Makefile
+++ b/1985/august/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1985/lycklama/Makefile b/1985/lycklama/Makefile
index 3457bd114..7515d0657 100644
--- a/1985/lycklama/Makefile
+++ b/1985/lycklama/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -158,89 +155,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1985/shapiro/Makefile b/1985/shapiro/Makefile
index 4ab1cfc23..2fe29e4ad 100644
--- a/1985/shapiro/Makefile
+++ b/1985/shapiro/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -157,89 +154,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1985/sicherman/Makefile b/1985/sicherman/Makefile
index cd008a16f..4eb026d3e 100644
--- a/1985/sicherman/Makefile
+++ b/1985/sicherman/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c ${PROG}.alt.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1986/Makefile b/1986/Makefile
index 84e6545b8..f981d508b 100644
--- a/1986/Makefile
+++ b/1986/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1986/applin/Makefile b/1986/applin/Makefile
index c603541cd..5e62aeb96 100644
--- a/1986/applin/Makefile
+++ b/1986/applin/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1986/august/Makefile b/1986/august/Makefile
index c88573129..d30f5cf7e 100644
--- a/1986/august/Makefile
+++ b/1986/august/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "NOTE: this entry is very likely to dump core after its output."
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1986/bright/Makefile b/1986/bright/Makefile
index 864697f7e..e481e68c4 100644
--- a/1986/bright/Makefile
+++ b/1986/bright/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1986/hague/Makefile b/1986/hague/Makefile
index 0303e3541..4661750f7 100644
--- a/1986/hague/Makefile
+++ b/1986/hague/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1986/holloway/Makefile b/1986/holloway/Makefile
index 57137ef97..d046caa8e 100644
--- a/1986/holloway/Makefile
+++ b/1986/holloway/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1986/marshall/Makefile b/1986/marshall/Makefile
index d59f82fcf..91287d1d2 100644
--- a/1986/marshall/Makefile
+++ b/1986/marshall/Makefile
@@ -133,10 +133,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
# We FORCE disable the optimiser due to funny problems in different compilers
# and systems. See compilers.md for details.
@@ -159,89 +156,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1986/pawka/Makefile b/1986/pawka/Makefile
index b757ffd48..f565d11b7 100644
--- a/1986/pawka/Makefile
+++ b/1986/pawka/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1986/stein/Makefile b/1986/stein/Makefile
index d3c1ae8a6..9ffee24f3 100644
--- a/1986/stein/Makefile
+++ b/1986/stein/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,90 +149,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f a.out
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1986/wall/Makefile b/1986/wall/Makefile
index 9c78f2b7c..7ca308e3b 100644
--- a/1986/wall/Makefile
+++ b/1986/wall/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -159,89 +156,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1987/Makefile b/1987/Makefile
index aca04aae8..107242c51 100644
--- a/1987/Makefile
+++ b/1987/Makefile
@@ -228,30 +228,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -291,6 +267,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1987/biggar/Makefile b/1987/biggar/Makefile
index 1ed6d4e0b..deff15c20 100644
--- a/1987/biggar/Makefile
+++ b/1987/biggar/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} -DC="R>0" -DI="if(T)O" -DO="c=write(1,&c,1);" \
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1987/heckbert/Makefile b/1987/heckbert/Makefile
index ea8bb52f7..a04e68ccd 100644
--- a/1987/heckbert/Makefile
+++ b/1987/heckbert/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,90 +150,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f bar.c ph ph.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1987/hines/Makefile b/1987/hines/Makefile
index 96164c5da..e75caabda 100644
--- a/1987/hines/Makefile
+++ b/1987/hines/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1987/korn/Makefile b/1987/korn/Makefile
index 35a0f7cfa..1c35e368f 100644
--- a/1987/korn/Makefile
+++ b/1987/korn/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1987/lievaart/Makefile b/1987/lievaart/Makefile
index 7ceec8369..c29a0a530 100644
--- a/1987/lievaart/Makefile
+++ b/1987/lievaart/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1987/wall/Makefile b/1987/wall/Makefile
index cc64e47b0..76ea175e1 100644
--- a/1987/wall/Makefile
+++ b/1987/wall/Makefile
@@ -140,10 +140,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber install
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -164,89 +161,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1987/westley/Makefile b/1987/westley/Makefile
index f4953b698..f48a04541 100644
--- a/1987/westley/Makefile
+++ b/1987/westley/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1988/Makefile b/1988/Makefile
index 43fbe87d4..148412750 100644
--- a/1988/Makefile
+++ b/1988/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1988/applin/Makefile b/1988/applin/Makefile
index 57bd5b431..614b99bbf 100644
--- a/1988/applin/Makefile
+++ b/1988/applin/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET= applin.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber install
# Way back in 1988 ..
#
@@ -173,48 +170,6 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
@@ -222,42 +177,11 @@ diff_alt_orig:
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
${RM} -f large.o
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM zsmall.c
${RM} -f large.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1988/dale/Makefile b/1988/dale/Makefile
index b946891d0..d76d36b15 100644
--- a/1988/dale/Makefile
+++ b/1988/dale/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1988/isaak/Makefile b/1988/isaak/Makefile
index b4cebb1dd..c7d501109 100644
--- a/1988/isaak/Makefile
+++ b/1988/isaak/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1988/litmaath/Makefile b/1988/litmaath/Makefile
index e7614c2ef..272374e79 100644
--- a/1988/litmaath/Makefile
+++ b/1988/litmaath/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1988/phillipps/Makefile b/1988/phillipps/Makefile
index a4d2e83e4..1cce292e9 100644
--- a/1988/phillipps/Makefile
+++ b/1988/phillipps/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1988/reddy/Makefile b/1988/reddy/Makefile
index 3a0a80116..d02efb21d 100644
--- a/1988/reddy/Makefile
+++ b/1988/reddy/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1988/robison/Makefile b/1988/robison/Makefile
index ce231bc81..b24de29bd 100644
--- a/1988/robison/Makefile
+++ b/1988/robison/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1988/spinellis/Makefile b/1988/spinellis/Makefile
index b5de19c3e..be9340da0 100644
--- a/1988/spinellis/Makefile
+++ b/1988/spinellis/Makefile
@@ -123,10 +123,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c input.txt
@${RM} -f $@
@@ -197,90 +194,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
- ${RM} -f runme
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1988/westley/Makefile b/1988/westley/Makefile
index 7b89cfdde..268eb0e64 100644
--- a/1988/westley/Makefile
+++ b/1988/westley/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1989/Makefile b/1989/Makefile
index 6bfe37ac4..6e5938fac 100644
--- a/1989/Makefile
+++ b/1989/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1989/fubar/Makefile b/1989/fubar/Makefile
index a55c7b239..bc6404b64 100644
--- a/1989/fubar/Makefile
+++ b/1989/fubar/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${RM} -f $@
@@ -150,90 +147,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ouroboros.c x x1
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1989/jar.1/Makefile b/1989/jar.1/Makefile
index a79ffdb4f..31968bc56 100644
--- a/1989/jar.1/Makefile
+++ b/1989/jar.1/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo NOTE: this compilation results in running the program itself.
@@ -162,89 +159,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1989/jar.2/Makefile b/1989/jar.2/Makefile
index 79d5a3a2f..7e0cd38eb 100644
--- a/1989/jar.2/Makefile
+++ b/1989/jar.2/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1989/ovdluhe/Makefile b/1989/ovdluhe/Makefile
index 9c7e0858f..709808752 100644
--- a/1989/ovdluhe/Makefile
+++ b/1989/ovdluhe/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -160,89 +157,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1989/paul/Makefile b/1989/paul/Makefile
index b7e32f049..6a4b58fa0 100644
--- a/1989/paul/Makefile
+++ b/1989/paul/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1989/robison/Makefile b/1989/robison/Makefile
index 86c063d2a..39c24c57b 100644
--- a/1989/robison/Makefile
+++ b/1989/robison/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "NOTE: this entry will crash with numbers with non binary digits."
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1989/roemer/Makefile b/1989/roemer/Makefile
index c7052cb38..c4641c4d4 100644
--- a/1989/roemer/Makefile
+++ b/1989/roemer/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1989/tromp/Makefile b/1989/tromp/Makefile
index 86b930df8..7b75e389b 100644
--- a/1989/tromp/Makefile
+++ b/1989/tromp/Makefile
@@ -135,10 +135,7 @@ CINCLUDE+= -include stdio.h -include unistd.h -include stdlib.h
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -162,89 +159,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1989/vanb/Makefile b/1989/vanb/Makefile
index 0ab769570..a75ad71b8 100644
--- a/1989/vanb/Makefile
+++ b/1989/vanb/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1989/westley/Makefile b/1989/westley/Makefile
index c2054facc..70f57f284 100644
--- a/1989/westley/Makefile
+++ b/1989/westley/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -172,90 +169,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ver0.c ver1.c ver2.c ver3.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/Makefile b/1990/Makefile
index acdfc79a8..c341a5fae 100644
--- a/1990/Makefile
+++ b/1990/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1990/baruch/Makefile b/1990/baruch/Makefile
index bbe6f0683..37682bf77 100644
--- a/1990/baruch/Makefile
+++ b/1990/baruch/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/cmills/Makefile b/1990/cmills/Makefile
index e788385b8..73251e763 100644
--- a/1990/cmills/Makefile
+++ b/1990/cmills/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/dds/Makefile b/1990/dds/Makefile
index 366e17f49..125105b4e 100644
--- a/1990/dds/Makefile
+++ b/1990/dds/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/dg/Makefile b/1990/dg/Makefile
index 14ead9014..0a5548059 100644
--- a/1990/dg/Makefile
+++ b/1990/dg/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/jaw/Makefile b/1990/jaw/Makefile
index edff2f93e..da883f3ce 100644
--- a/1990/jaw/Makefile
+++ b/1990/jaw/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
zcat: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -163,89 +160,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/pjr/Makefile b/1990/pjr/Makefile
index 34fb9b44d..a533c7d9d 100644
--- a/1990/pjr/Makefile
+++ b/1990/pjr/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -148,89 +145,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/scjones/Makefile b/1990/scjones/Makefile
index a499502b9..810ed0620 100644
--- a/1990/scjones/Makefile
+++ b/1990/scjones/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/stig/Makefile b/1990/stig/Makefile
index cea18baed..fa6c9a85f 100644
--- a/1990/stig/Makefile
+++ b/1990/stig/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "source ./stig.sh ; source ./stig.c" | ${SH}
@@ -149,90 +146,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f o.c o
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/tbr/Makefile b/1990/tbr/Makefile
index d1c1beae1..890d249cc 100644
--- a/1990/tbr/Makefile
+++ b/1990/tbr/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/theorem/Makefile b/1990/theorem/Makefile
index e86c099e8..6872355e3 100644
--- a/1990/theorem/Makefile
+++ b/1990/theorem/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -175,58 +172,12 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
@@ -234,33 +185,6 @@ clobber: clean
${RM} -f sorter.c sorter
${RM} -f fibonacci.c fibonacci
${RM} -f theorem_bkp.c theorem_bkp
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1990/westley/Makefile b/1990/westley/Makefile
index 9f2888d02..e4376c824 100644
--- a/1990/westley/Makefile
+++ b/1990/westley/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "NOTE: this will very likely crash without an arg"
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1991/Makefile b/1991/Makefile
index 3092fd92c..783b36918 100644
--- a/1991/Makefile
+++ b/1991/Makefile
@@ -228,30 +228,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -291,6 +267,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1991/ant/Makefile b/1991/ant/Makefile
index 508445c02..1c3ee7295 100644
--- a/1991/ant/Makefile
+++ b/1991/ant/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET= ${PROG}.alt ${PROG}.alt2
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c hill
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -176,89 +173,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM ant.alt ant.alt2
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1991/brnstnd/Makefile b/1991/brnstnd/Makefile
index a3685c47c..7ef0dbe0e 100644
--- a/1991/brnstnd/Makefile
+++ b/1991/brnstnd/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM sorta
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1991/buzzard/Makefile b/1991/buzzard/Makefile
index 46373a5b6..b1435ec79 100644
--- a/1991/buzzard/Makefile
+++ b/1991/buzzard/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -158,89 +155,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1991/cdupont/Makefile b/1991/cdupont/Makefile
index 1fee3036e..967d9ce30 100644
--- a/1991/cdupont/Makefile
+++ b/1991/cdupont/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -148,89 +145,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1991/davidguy/Makefile b/1991/davidguy/Makefile
index fed7d5acc..1d0fb9825 100644
--- a/1991/davidguy/Makefile
+++ b/1991/davidguy/Makefile
@@ -134,10 +134,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -158,89 +155,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1991/dds/Makefile b/1991/dds/Makefile
index e5180bbba..8b6754c4f 100644
--- a/1991/dds/Makefile
+++ b/1991/dds/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,90 +149,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f a.out a.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1991/fine/Makefile b/1991/fine/Makefile
index c3f5e436f..088f431e1 100644
--- a/1991/fine/Makefile
+++ b/1991/fine/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1991/rince/Makefile b/1991/rince/Makefile
index d17b8119c..3abf628c5 100644
--- a/1991/rince/Makefile
+++ b/1991/rince/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt ${PROG}.alt2
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -162,89 +159,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1991/westley/Makefile b/1991/westley/Makefile
index de5fb9926..1ee738b73 100644
--- a/1991/westley/Makefile
+++ b/1991/westley/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET= ${PROG}.alt ttt.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -258,48 +255,6 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
@@ -307,10 +262,6 @@ diff_alt_orig:
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
${RM} -f new_merlyn.c
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
@@ -319,33 +270,6 @@ clobber: clean
${RM} -f merlyn.alt merlyn.alt.c nextmove.alt nextmove.alt.c
${RM} -f ttt_game ttt_game.c ttt_old.c ttt_new.c nextmove
${RM} -f ttt.alt_game ttt.alt_game.c ttt.alt_old.c ttt_.altnew.c nextmove.alt
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/Makefile b/1992/Makefile
index 34ef5ac10..a517b5349 100644
--- a/1992/Makefile
+++ b/1992/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1992/adrian/Makefile b/1992/adrian/Makefile
index 68b100561..7366bb0f8 100644
--- a/1992/adrian/Makefile
+++ b/1992/adrian/Makefile
@@ -134,10 +134,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -179,58 +176,12 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
@@ -238,33 +189,6 @@ clobber: clean
${RM} -f adbasename adbasename.c adecho adecho.c adgrep adhead
${RM} -f adhead.c adrian adsleep adsleep.c adwc adwc.c
${RM} -f ad.alt.temp adwc.alt.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/albert/Makefile b/1992/albert/Makefile
index 05a8e355d..f56f71351 100644
--- a/1992/albert/Makefile
+++ b/1992/albert/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/ant/Makefile b/1992/ant/Makefile
index 1f329f33f..c72d5743b 100644
--- a/1992/ant/Makefile
+++ b/1992/ant/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto \
+.PHONY: all alt data everything clean clobber
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
@@ -170,104 +167,18 @@ everything: all alt am am.alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f am am.safe am.alt am.safe.alt ${PROG}.alt
${RM} -f node.* leaf.*
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-am_clean:
- rm -f ant.o am.o
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
-
-am_clobber: am_clean
- rm -f am.safe
-
-am_alt_clobber:
- rm -f am.safe.alt
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/buzzard.1/Makefile b/1992/buzzard.1/Makefile
index 4bb5bfd5c..44e4bfd69 100644
--- a/1992/buzzard.1/Makefile
+++ b/1992/buzzard.1/Makefile
@@ -131,10 +131,7 @@ CPPCLEAN= ${GREP} -v '^. [0-9][0-9]*'
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -184,90 +181,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f babble.cppcb babble
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/buzzard.2/Makefile b/1992/buzzard.2/Makefile
index e74c04091..6876c7560 100644
--- a/1992/buzzard.2/Makefile
+++ b/1992/buzzard.2/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt first.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -163,90 +160,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f first buzzard.2
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/gson/Makefile b/1992/gson/Makefile
index 1bdfcb692..4697ef0a2 100644
--- a/1992/gson/Makefile
+++ b/1992/gson/Makefile
@@ -133,10 +133,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
# We DISABLE THE OPTIMISER because when it's enabled in some conditions it
# crashes.
@@ -163,90 +160,17 @@ data: ${DATA}
everything: all alt
-
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f og words
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/imc/Makefile b/1992/imc/Makefile
index 5a8b7dec2..d8e4aca9d 100644
--- a/1992/imc/Makefile
+++ b/1992/imc/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/kivinen/Makefile b/1992/kivinen/Makefile
index 4fe21610d..3f29efd30 100644
--- a/1992/kivinen/Makefile
+++ b/1992/kivinen/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -162,89 +159,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/lush/Makefile b/1992/lush/Makefile
index a98d7ca8a..a03e7adcb 100644
--- a/1992/lush/Makefile
+++ b/1992/lush/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,48 +153,6 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
@@ -205,41 +160,10 @@ diff_alt_orig:
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
${RM} -f lush.again
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/marangon/Makefile b/1992/marangon/Makefile
index 0bd116751..80cbf4f71 100644
--- a/1992/marangon/Makefile
+++ b/1992/marangon/Makefile
@@ -134,10 +134,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -158,89 +155,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/nathan/Makefile b/1992/nathan/Makefile
index 5c5c75444..b1a7484c1 100644
--- a/1992/nathan/Makefile
+++ b/1992/nathan/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/vern/Makefile b/1992/vern/Makefile
index 9d9117f33..512612ca0 100644
--- a/1992/vern/Makefile
+++ b/1992/vern/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.tmp.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -159,90 +156,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ${PROG}.tmp.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1992/westley/Makefile b/1992/westley/Makefile
index 2fb961780..8bc02cca0 100644
--- a/1992/westley/Makefile
+++ b/1992/westley/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -167,90 +164,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET} ${ALT_TARGET}2
${RM} -rf *.dSYM
${RM} -f whereami whereami.alt whereami.alt2
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/Makefile b/1993/Makefile
index 2498da065..a06d4abb0 100644
--- a/1993/Makefile
+++ b/1993/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1993/ant/Makefile b/1993/ant/Makefile
index a45e1c2d6..b8be9e954 100644
--- a/1993/ant/Makefile
+++ b/1993/ant/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -166,90 +163,17 @@ everything: all alt ag ag.alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ag ag.txt ant.alt ag.alt deobfuscated/ant deobfuscated/ant-c89 deobfuscated/ag deobfuscated/ag-c89
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/cmills/Makefile b/1993/cmills/Makefile
index b526adf06..87f0b50da 100644
--- a/1993/cmills/Makefile
+++ b/1993/cmills/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -162,90 +159,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f chris
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/dgibson/Makefile b/1993/dgibson/Makefile
index 52a0be17f..dac635e22 100644
--- a/1993/dgibson/Makefile
+++ b/1993/dgibson/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
-@if [ ! -f life.d ] ; then \
@@ -159,90 +156,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f life.d data.name
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/ejb/Makefile b/1993/ejb/Makefile
index 3c2c4af36..9476f6aee 100644
--- a/1993/ejb/Makefile
+++ b/1993/ejb/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/jonth/Makefile b/1993/jonth/Makefile
index 0eb9a7961..bd4d8453e 100644
--- a/1993/jonth/Makefile
+++ b/1993/jonth/Makefile
@@ -135,10 +135,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.tmp.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -162,90 +159,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f jonth.tmp.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/leo/Makefile b/1993/leo/Makefile
index 9ecc72c95..20ef31010 100644
--- a/1993/leo/Makefile
+++ b/1993/leo/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= mind
all: data ${TARGET} ${ALT_TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,90 +150,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f mind
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/lmfjyh/Makefile b/1993/lmfjyh/Makefile
index 6e20b436b..4cb866b3e 100644
--- a/1993/lmfjyh/Makefile
+++ b/1993/lmfjyh/Makefile
@@ -123,10 +123,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "NOTE: This will not compile when using modern compilers because"
@@ -163,90 +160,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f \"\;main\(\)\{puts\(\"Hello\ World!\"\)\;\}char\*C=\".c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/plummer/Makefile b/1993/plummer/Makefile
index e3347bb37..7b81fdf7b 100644
--- a/1993/plummer/Makefile
+++ b/1993/plummer/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -158,89 +155,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/rince/Makefile b/1993/rince/Makefile
index f63d78e23..dcf07cafd 100644
--- a/1993/rince/Makefile
+++ b/1993/rince/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt ${PROG}.alt2
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -176,90 +173,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f jkb
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/schnitzi/Makefile b/1993/schnitzi/Makefile
index b1827fdbd..5c8c88ae9 100644
--- a/1993/schnitzi/Makefile
+++ b/1993/schnitzi/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "NOTE: this entry will segfault if the file cannot be opened."
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1993/vanb/Makefile b/1993/vanb/Makefile
index 3c47241a2..6cd73f52c 100644
--- a/1993/vanb/Makefile
+++ b/1993/vanb/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/Makefile b/1994/Makefile
index 29bea723e..436710bfb 100644
--- a/1994/Makefile
+++ b/1994/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1994/dodsond1/Makefile b/1994/dodsond1/Makefile
index 1562d4177..7ce0bc060 100644
--- a/1994/dodsond1/Makefile
+++ b/1994/dodsond1/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/dodsond2/Makefile b/1994/dodsond2/Makefile
index aaac92499..e2339e8d2 100644
--- a/1994/dodsond2/Makefile
+++ b/1994/dodsond2/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -160,89 +157,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/horton/Makefile b/1994/horton/Makefile
index bab613915..563278295 100644
--- a/1994/horton/Makefile
+++ b/1994/horton/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET= ${PROG}.alt gtface
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -159,89 +156,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/imc/Makefile b/1994/imc/Makefile
index d2c63e120..e84bd0eec 100644
--- a/1994/imc/Makefile
+++ b/1994/imc/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/ldb/Makefile b/1994/ldb/Makefile
index 9985545af..1b867833e 100644
--- a/1994/ldb/Makefile
+++ b/1994/ldb/Makefile
@@ -132,10 +132,7 @@ CFLAGS+= -trigraphs
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/schnitzi/Makefile b/1994/schnitzi/Makefile
index 972370202..1ee056e20 100644
--- a/1994/schnitzi/Makefile
+++ b/1994/schnitzi/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -164,89 +161,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/shapiro/Makefile b/1994/shapiro/Makefile
index 70467fc23..08c178bab 100644
--- a/1994/shapiro/Makefile
+++ b/1994/shapiro/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}_t2.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -160,90 +157,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ${PROG}_t2.c ${PROG}_t1
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/smr/Makefile b/1994/smr/Makefile
index 98f08bb3f..5e494575a 100644
--- a/1994/smr/Makefile
+++ b/1994/smr/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${RM} -f $@
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/tvr/Makefile b/1994/tvr/Makefile
index 632af8209..c9ea2704f 100644
--- a/1994/tvr/Makefile
+++ b/1994/tvr/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -159,89 +156,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/weisberg/Makefile b/1994/weisberg/Makefile
index 2765f33cb..b903f80e3 100644
--- a/1994/weisberg/Makefile
+++ b/1994/weisberg/Makefile
@@ -132,10 +132,7 @@ C_LARGE= -De='~(1<<8*sizeof(int)-1)' -Do='(2<<7*sizeof(int))'
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${C_SMALL} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -159,89 +156,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1994/westley/Makefile b/1994/westley/Makefile
index 7b50aa7eb..6eaa111ad 100644
--- a/1994/westley/Makefile
+++ b/1994/westley/Makefile
@@ -123,10 +123,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "=-=-=-=-="
@@ -163,89 +160,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/Makefile b/1995/Makefile
index ec152e6ee..42eea9222 100644
--- a/1995/Makefile
+++ b/1995/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1995/cdua/Makefile b/1995/cdua/Makefile
index a665ea308..553f14a3d 100644
--- a/1995/cdua/Makefile
+++ b/1995/cdua/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -160,89 +157,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/dodsond1/Makefile b/1995/dodsond1/Makefile
index eccae963c..e1e0e9d62 100644
--- a/1995/dodsond1/Makefile
+++ b/1995/dodsond1/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/dodsond2/Makefile b/1995/dodsond2/Makefile
index f4a052a72..afdd7360c 100644
--- a/1995/dodsond2/Makefile
+++ b/1995/dodsond2/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/esde/Makefile b/1995/esde/Makefile
index f80066139..15c0c4cfc 100644
--- a/1995/esde/Makefile
+++ b/1995/esde/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/garry/Makefile b/1995/garry/Makefile
index dc297adfb..387bb68ad 100644
--- a/1995/garry/Makefile
+++ b/1995/garry/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/heathbar/Makefile b/1995/heathbar/Makefile
index 942b6a613..3821f9e8e 100644
--- a/1995/heathbar/Makefile
+++ b/1995/heathbar/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -148,89 +145,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/leo/Makefile b/1995/leo/Makefile
index 83adad611..4a1232695 100644
--- a/1995/leo/Makefile
+++ b/1995/leo/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM foo.ps
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/makarios/Makefile b/1995/makarios/Makefile
index 25b326fd6..aecfe29bd 100644
--- a/1995/makarios/Makefile
+++ b/1995/makarios/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/savastio/Makefile b/1995/savastio/Makefile
index 1a91b5918..51bd85171 100644
--- a/1995/savastio/Makefile
+++ b/1995/savastio/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/schnitzi/Makefile b/1995/schnitzi/Makefile
index 8479be1d3..b904422e2 100644
--- a/1995/schnitzi/Makefile
+++ b/1995/schnitzi/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/spinellis/Makefile b/1995/spinellis/Makefile
index 6c0f95581..17b5a4794 100644
--- a/1995/spinellis/Makefile
+++ b/1995/spinellis/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1995/vanschnitz/Makefile b/1995/vanschnitz/Makefile
index 15e3874db..74786364e 100644
--- a/1995/vanschnitz/Makefile
+++ b/1995/vanschnitz/Makefile
@@ -127,10 +127,7 @@ LEVEL= 5
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/Makefile b/1996/Makefile
index 3efcfd427..fdbfd924f 100644
--- a/1996/Makefile
+++ b/1996/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1996/august/Makefile b/1996/august/Makefile
index 0e8ef9f60..1644617c8 100644
--- a/1996/august/Makefile
+++ b/1996/august/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -161,89 +158,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/dalbec/Makefile b/1996/dalbec/Makefile
index 883136fac..74ce85fe9 100644
--- a/1996/dalbec/Makefile
+++ b/1996/dalbec/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -148,89 +145,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/eldby/Makefile b/1996/eldby/Makefile
index e3fa5e073..89769fff1 100644
--- a/1996/eldby/Makefile
+++ b/1996/eldby/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/gandalf/Makefile b/1996/gandalf/Makefile
index 43985115a..25572b52a 100644
--- a/1996/gandalf/Makefile
+++ b/1996/gandalf/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -161,89 +158,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/huffman/Makefile b/1996/huffman/Makefile
index 3203b9078..a72ddfb1d 100644
--- a/1996/huffman/Makefile
+++ b/1996/huffman/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/jonth/Makefile b/1996/jonth/Makefile
index a59cbe6b4..f4a5dcc31 100644
--- a/1996/jonth/Makefile
+++ b/1996/jonth/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/rcm/Makefile b/1996/rcm/Makefile
index ed58a62b2..6ebf0d81e 100644
--- a/1996/rcm/Makefile
+++ b/1996/rcm/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/schweikh1/Makefile b/1996/schweikh1/Makefile
index acfe94d24..d4378623c 100644
--- a/1996/schweikh1/Makefile
+++ b/1996/schweikh1/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/schweikh2/Makefile b/1996/schweikh2/Makefile
index aea05a867..ef98c32ae 100644
--- a/1996/schweikh2/Makefile
+++ b/1996/schweikh2/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,90 +147,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f obfus.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/schweikh3/Makefile b/1996/schweikh3/Makefile
index 7bbc5e001..30fc75d75 100644
--- a/1996/schweikh3/Makefile
+++ b/1996/schweikh3/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} || \
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1996/westley/Makefile b/1996/westley/Makefile
index 23db0bfc0..f460ca1dd 100644
--- a/1996/westley/Makefile
+++ b/1996/westley/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= westley.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/Makefile b/1998/Makefile
index 217c29ce1..a8bd689c3 100644
--- a/1998/Makefile
+++ b/1998/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/1998/banks/Makefile b/1998/banks/Makefile
index e497c6507..7424cdedf 100644
--- a/1998/banks/Makefile
+++ b/1998/banks/Makefile
@@ -143,10 +143,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -171,89 +168,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/bas1/Makefile b/1998/bas1/Makefile
index 2a0994d23..d43de6175 100644
--- a/1998/bas1/Makefile
+++ b/1998/bas1/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -158,89 +155,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/bas2/Makefile b/1998/bas2/Makefile
index cc1067267..b4c4548ea 100644
--- a/1998/bas2/Makefile
+++ b/1998/bas2/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/chaos/Makefile b/1998/chaos/Makefile
index c59416b67..bdb6422c2 100644
--- a/1998/chaos/Makefile
+++ b/1998/chaos/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}_nohalf
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -157,90 +154,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ${PROG}_nohalf.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/df/Makefile b/1998/df/Makefile
index c5b40f72d..0fee0cebb 100644
--- a/1998/df/Makefile
+++ b/1998/df/Makefile
@@ -133,10 +133,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -157,89 +154,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/dlowe/Makefile b/1998/dlowe/Makefile
index 093983e06..52e0a6483 100644
--- a/1998/dlowe/Makefile
+++ b/1998/dlowe/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/dloweneil/Makefile b/1998/dloweneil/Makefile
index ffd4ff515..62ea20eed 100644
--- a/1998/dloweneil/Makefile
+++ b/1998/dloweneil/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET= ${PROG}.alt pootris.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -160,89 +157,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/dorssel/Makefile b/1998/dorssel/Makefile
index d4d89aec0..2d9c7929e 100644
--- a/1998/dorssel/Makefile
+++ b/1998/dorssel/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/fanf/Makefile b/1998/fanf/Makefile
index b43f998d5..273d4fb57 100644
--- a/1998/fanf/Makefile
+++ b/1998/fanf/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "This may take some time to complete:"
@@ -155,90 +152,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ${PROG}tmp1.c ${PROG}tmp2.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/schnitzi/Makefile b/1998/schnitzi/Makefile
index c06bbfbaa..7d3e22909 100644
--- a/1998/schnitzi/Makefile
+++ b/1998/schnitzi/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/schweikh1/Makefile b/1998/schweikh1/Makefile
index 8b9dbf912..ddb59cd3b 100644
--- a/1998/schweikh1/Makefile
+++ b/1998/schweikh1/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/schweikh2/Makefile b/1998/schweikh2/Makefile
index 36fd9c208..fa8fb1672 100644
--- a/1998/schweikh2/Makefile
+++ b/1998/schweikh2/Makefile
@@ -128,10 +128,7 @@ CFLAGS+= -trigraphs
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ} yarng
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/schweikh3/Makefile b/1998/schweikh3/Makefile
index 6228f00f2..ac5fca6f9 100644
--- a/1998/schweikh3/Makefile
+++ b/1998/schweikh3/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -159,89 +156,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET} samefile.alt
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/1998/tomtorfs/Makefile b/1998/tomtorfs/Makefile
index 67c7b4e40..68ac5cab1 100644
--- a/1998/tomtorfs/Makefile
+++ b/1998/tomtorfs/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/Makefile b/2000/Makefile
index b32f260ef..b833b2431 100644
--- a/2000/Makefile
+++ b/2000/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2000/anderson/Makefile b/2000/anderson/Makefile
index 934279a1a..9596aa480 100644
--- a/2000/anderson/Makefile
+++ b/2000/anderson/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/bellard/Makefile b/2000/bellard/Makefile
index 60322c6c8..72c50ce5f 100644
--- a/2000/bellard/Makefile
+++ b/2000/bellard/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/bmeyer/Makefile b/2000/bmeyer/Makefile
index be4b80ffb..4054d3318 100644
--- a/2000/bmeyer/Makefile
+++ b/2000/bmeyer/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -158,89 +155,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM michael.glic
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/briddlebane/Makefile b/2000/briddlebane/Makefile
index 510baac22..04e24c91a 100644
--- a/2000/briddlebane/Makefile
+++ b/2000/briddlebane/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/dhyang/Makefile b/2000/dhyang/Makefile
index a95c421f2..22931efb3 100644
--- a/2000/dhyang/Makefile
+++ b/2000/dhyang/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET} test
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -179,89 +176,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/dlowe/Makefile b/2000/dlowe/Makefile
index 480efdb85..03d6bdca8 100644
--- a/2000/dlowe/Makefile
+++ b/2000/dlowe/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CDEFINE} ${CSILENCE} -DPERL_POLLUTE \
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/jarijyrki/Makefile b/2000/jarijyrki/Makefile
index 38a34f3e1..8c0e612d6 100644
--- a/2000/jarijyrki/Makefile
+++ b/2000/jarijyrki/Makefile
@@ -133,10 +133,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -157,90 +154,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f myedits.info
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/natori/Makefile b/2000/natori/Makefile
index bc8b99bb4..5a25d9ffe 100644
--- a/2000/natori/Makefile
+++ b/2000/natori/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/primenum/Makefile b/2000/primenum/Makefile
index a5a1b8c53..ebd8ccebc 100644
--- a/2000/primenum/Makefile
+++ b/2000/primenum/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/rince/Makefile b/2000/rince/Makefile
index eef6176f0..6fd914daa 100644
--- a/2000/rince/Makefile
+++ b/2000/rince/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/robison/Makefile b/2000/robison/Makefile
index 6d4de8ced..a502c6b51 100644
--- a/2000/robison/Makefile
+++ b/2000/robison/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/schneiderwent/Makefile b/2000/schneiderwent/Makefile
index 8fc11c5e7..ec4641dc1 100644
--- a/2000/schneiderwent/Makefile
+++ b/2000/schneiderwent/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
# FORCE use of -trigraphs
#
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/thadgavin/Makefile b/2000/thadgavin/Makefile
index 3795a87da..a78d34d20 100644
--- a/2000/thadgavin/Makefile
+++ b/2000/thadgavin/Makefile
@@ -134,10 +134,7 @@ ALT_TARGET= ${PROG}.alt ${PROG}.alt_sdl
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "WARNING: if you are sensitive to rapid movement you should probably avoid this entry."
@@ -169,89 +166,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2000/tomx/Makefile b/2000/tomx/Makefile
index 888ec8d7d..3f48ef203 100644
--- a/2000/tomx/Makefile
+++ b/2000/tomx/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM mkentry
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/Makefile b/2001/Makefile
index 49906d3f8..6cdc3acfb 100644
--- a/2001/Makefile
+++ b/2001/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2001/anonymous/Makefile b/2001/anonymous/Makefile
index 9ece0b558..5192e3726 100644
--- a/2001/anonymous/Makefile
+++ b/2001/anonymous/Makefile
@@ -134,10 +134,7 @@ ALT_TARGET= ${PROG}.ten.alt ${PROG}.bed.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
magic='${CC} ${CFLAGS}'; \
@@ -216,90 +213,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f anonymous.ten.bak ten.od ten.od.bak ten.txt ten.bak.txt
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/bellard/Makefile b/2001/bellard/Makefile
index 76078801f..a1843ce2c 100644
--- a/2001/bellard/Makefile
+++ b/2001/bellard/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "WARNING: This must be compiled as a 32-bit binary and run"
@@ -159,89 +156,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/cheong/Makefile b/2001/cheong/Makefile
index 887bbae8a..c5d5ad596 100644
--- a/2001/cheong/Makefile
+++ b/2001/cheong/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/coupard/Makefile b/2001/coupard/Makefile
index db52d6a27..049263b22 100644
--- a/2001/coupard/Makefile
+++ b/2001/coupard/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/ctk/Makefile b/2001/ctk/Makefile
index a7b4f852e..c202dff27 100644
--- a/2001/ctk/Makefile
+++ b/2001/ctk/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/dgbeards/Makefile b/2001/dgbeards/Makefile
index 75dd482c9..486ce2f8a 100644
--- a/2001/dgbeards/Makefile
+++ b/2001/dgbeards/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/herrmann1/Makefile b/2001/herrmann1/Makefile
index a6351c373..818ee2cc8 100644
--- a/2001/herrmann1/Makefile
+++ b/2001/herrmann1/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c ${PROG}.sh
${SHELL} ./herrmann1.sh
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM error herrmann1-1.c herrmann1-3.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/herrmann2/Makefile b/2001/herrmann2/Makefile
index 6488201a8..d2824f04f 100644
--- a/2001/herrmann2/Makefile
+++ b/2001/herrmann2/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -159,89 +156,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/jason/Makefile b/2001/jason/Makefile
index f7036956e..b247fce62 100644
--- a/2001/jason/Makefile
+++ b/2001/jason/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/kev/Makefile b/2001/kev/Makefile
index bbc91287a..515475651 100644
--- a/2001/kev/Makefile
+++ b/2001/kev/Makefile
@@ -137,10 +137,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -164,89 +161,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/ollinger/Makefile b/2001/ollinger/Makefile
index a9e97a5a5..213765848 100644
--- a/2001/ollinger/Makefile
+++ b/2001/ollinger/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/rosten/Makefile b/2001/rosten/Makefile
index 2e8bd0669..6cd073266 100644
--- a/2001/rosten/Makefile
+++ b/2001/rosten/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/schweikh/Makefile b/2001/schweikh/Makefile
index ca49c8ecb..cfdb8dcca 100644
--- a/2001/schweikh/Makefile
+++ b/2001/schweikh/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/westley/Makefile b/2001/westley/Makefile
index 295c8b633..fb690377f 100644
--- a/2001/westley/Makefile
+++ b/2001/westley/Makefile
@@ -134,10 +134,7 @@ CFLAGS+= -trigraphs
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -181,90 +178,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM westley2*
${RM} -f westley.punch.c westley.sort.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2001/williams/Makefile b/2001/williams/Makefile
index 2b4df2c92..70663f545 100644
--- a/2001/williams/Makefile
+++ b/2001/williams/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/Makefile b/2004/Makefile
index 64da22633..f0cd275c2 100644
--- a/2004/Makefile
+++ b/2004/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2004/anonymous/Makefile b/2004/anonymous/Makefile
index 7525d8221..1e25cd563 100644
--- a/2004/anonymous/Makefile
+++ b/2004/anonymous/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,90 +146,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -f precious.pgm ring.pgm
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/arachnid/Makefile b/2004/arachnid/Makefile
index 75c2be473..0c5166d87 100644
--- a/2004/arachnid/Makefile
+++ b/2004/arachnid/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/burley/Makefile b/2004/burley/Makefile
index a1688efb6..722c76aa8 100644
--- a/2004/burley/Makefile
+++ b/2004/burley/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
# NOTE: We FORCE the use of -O0 even if someone overrides it because this entry
# will not work with it enabled.
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/gavare/Makefile b/2004/gavare/Makefile
index b9cd8131b..c0472d647 100644
--- a/2004/gavare/Makefile
+++ b/2004/gavare/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.r3 ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -166,89 +163,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/gavin/Makefile b/2004/gavin/Makefile
index 0f0f007e1..c9491030e 100644
--- a/2004/gavin/Makefile
+++ b/2004/gavin/Makefile
@@ -135,10 +135,7 @@ ALT_TARGET= ${PROG}.alt kernel.alt sh.alt vi.alt fs.alt.tar
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -199,48 +196,6 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
@@ -248,42 +203,11 @@ diff_alt_orig:
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
${RM} -f sh vi kernel gavin.o
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f gavin fs.tar
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/hibachi/Makefile b/2004/hibachi/Makefile
index d1874e0b7..7f3a61474 100644
--- a/2004/hibachi/Makefile
+++ b/2004/hibachi/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= build-alt/${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
build/${PROG}: src/hibachi.c src
${RM} -rf build
@@ -175,91 +172,18 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -f src/hibachi.c src/config.log src-alt/hibachi.c src-alt/hibachi.c
${RM} -rf *.dSYM
${RM} -rf build build-alt
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/hoyle/Makefile b/2004/hoyle/Makefile
index f4f7fa261..94bc7241c 100644
--- a/2004/hoyle/Makefile
+++ b/2004/hoyle/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/jdalbec/Makefile b/2004/jdalbec/Makefile
index 252014ec7..915466876 100644
--- a/2004/jdalbec/Makefile
+++ b/2004/jdalbec/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@${RM} -f ${PROG}2.c $@
@@ -166,90 +163,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ${PROG}2.c ${PROG}3.c ${PROG}2.alt.c ${PROG}3.alt.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/kopczynski/Makefile b/2004/kopczynski/Makefile
index 4c213d126..6f0585309 100644
--- a/2004/kopczynski/Makefile
+++ b/2004/kopczynski/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
# NOTE: We FORCE the use of -O0 even if someone overrides it because this entry
# will not work with it enabled.
@@ -157,89 +154,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/newbern/Makefile b/2004/newbern/Makefile
index f97bb0273..444502d47 100644
--- a/2004/newbern/Makefile
+++ b/2004/newbern/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/omoikane/Makefile b/2004/omoikane/Makefile
index bb5691f99..7c37937da 100644
--- a/2004/omoikane/Makefile
+++ b/2004/omoikane/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/schnitzi/Makefile b/2004/schnitzi/Makefile
index 10612f69f..2641d2460 100644
--- a/2004/schnitzi/Makefile
+++ b/2004/schnitzi/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/sds/Makefile b/2004/sds/Makefile
index ba558ec0b..ffa932b0d 100644
--- a/2004/sds/Makefile
+++ b/2004/sds/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM encoder* message remarks.md sds2_msg.c sds_msg*
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/vik1/Makefile b/2004/vik1/Makefile
index f9bee6745..816d4355f 100644
--- a/2004/vik1/Makefile
+++ b/2004/vik1/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2004/vik2/Makefile b/2004/vik2/Makefile
index 2e036ae9f..c2109bc1d 100644
--- a/2004/vik2/Makefile
+++ b/2004/vik2/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} -DFNAME='"${PROG}.c"' '-DSTOP=_5' ${PROG}.c -o ${PROG}
@@ -148,48 +145,6 @@ data: ${DATA}
everything: all alt
@${TRUE}
-
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
# The original vik2 source
#
# On some systems such as Linux, this source either fails
@@ -222,10 +177,6 @@ cat-killing-curiosity: vik2.possible.cat.death.c
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
vik2_clean:
${RM} -f vik2.o
@@ -236,33 +187,6 @@ clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ${PROG}.possible.cat.death_1.c ${PROG}.possible.cat.death_2.c cat-killing-curiosity
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/Makefile b/2005/Makefile
index 5f8542fc7..b8990f7a8 100644
--- a/2005/Makefile
+++ b/2005/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2005/aidan/Makefile b/2005/aidan/Makefile
index d090a7090..ebba29960 100644
--- a/2005/aidan/Makefile
+++ b/2005/aidan/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/anon/Makefile b/2005/anon/Makefile
index f5b83a967..6480cce2a 100644
--- a/2005/anon/Makefile
+++ b/2005/anon/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -159,89 +156,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/boutines/Makefile b/2005/boutines/Makefile
index 853448b65..63545d647 100644
--- a/2005/boutines/Makefile
+++ b/2005/boutines/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/chia/Makefile b/2005/chia/Makefile
index 1734cecf6..c88b931b4 100644
--- a/2005/chia/Makefile
+++ b/2005/chia/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/giljade/Makefile b/2005/giljade/Makefile
index a3d3523aa..ad25648ee 100644
--- a/2005/giljade/Makefile
+++ b/2005/giljade/Makefile
@@ -133,10 +133,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
# NOTE: We FORCE the use of -O0 even if someone overrides it because this entry
# will not work with it enabled.
@@ -162,89 +159,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM out out.count c.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/jetro/Makefile b/2005/jetro/Makefile
index 385099db8..48d7cc238 100644
--- a/2005/jetro/Makefile
+++ b/2005/jetro/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/klausler/Makefile b/2005/klausler/Makefile
index 319640a45..bf3be1bfa 100644
--- a/2005/klausler/Makefile
+++ b/2005/klausler/Makefile
@@ -131,10 +131,7 @@ DICTIONARY= /usr/share/dict/words /usr/dict/words /usr/lib/dict/words /usr/share
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: dict.h ${PROG}.c
${CC} ${CFLAGS} ${PROG}.c -o $@ ${LDFLAGS}
@@ -173,89 +170,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/mikeash/Makefile b/2005/mikeash/Makefile
index d3b83e9a6..612fc5afa 100644
--- a/2005/mikeash/Makefile
+++ b/2005/mikeash/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/mynx/Makefile b/2005/mynx/Makefile
index b3387fbbc..1f921d28c 100644
--- a/2005/mynx/Makefile
+++ b/2005/mynx/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt ${PROG}.alt2
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/persano/Makefile b/2005/persano/Makefile
index 0a488c96c..b8f76a883 100644
--- a/2005/persano/Makefile
+++ b/2005/persano/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM *.gif
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/sykes/Makefile b/2005/sykes/Makefile
index 467b46a86..c74aff259 100644
--- a/2005/sykes/Makefile
+++ b/2005/sykes/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -163,89 +160,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/timwi/Makefile b/2005/timwi/Makefile
index b63381e9c..4c9af8068 100644
--- a/2005/timwi/Makefile
+++ b/2005/timwi/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/toledo/Makefile b/2005/toledo/Makefile
index 190193912..5527510aa 100644
--- a/2005/toledo/Makefile
+++ b/2005/toledo/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}2 ${PROG}3
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -158,89 +155,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/vik/Makefile b/2005/vik/Makefile
index ac1eb28d8..3f5832f18 100644
--- a/2005/vik/Makefile
+++ b/2005/vik/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2005/vince/Makefile b/2005/vince/Makefile
index a32137a5c..33ee55e07 100644
--- a/2005/vince/Makefile
+++ b/2005/vince/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/Makefile b/2006/Makefile
index c6cc4bc87..bf8c190ce 100644
--- a/2006/Makefile
+++ b/2006/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2006/birken/Makefile b/2006/birken/Makefile
index b106ecf7e..36ea3877b 100644
--- a/2006/birken/Makefile
+++ b/2006/birken/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/borsanyi/Makefile b/2006/borsanyi/Makefile
index 1b0586642..793b95e96 100644
--- a/2006/borsanyi/Makefile
+++ b/2006/borsanyi/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/grothe/Makefile b/2006/grothe/Makefile
index 36d69ace7..9b9f2fdd1 100644
--- a/2006/grothe/Makefile
+++ b/2006/grothe/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -148,89 +145,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/hamre/Makefile b/2006/hamre/Makefile
index fdcf1e40b..9c1cbec72 100644
--- a/2006/hamre/Makefile
+++ b/2006/hamre/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/meyer/Makefile b/2006/meyer/Makefile
index 690fb6d9e..8fc6bf7a6 100644
--- a/2006/meyer/Makefile
+++ b/2006/meyer/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/monge/Makefile b/2006/monge/Makefile
index 0c9a31c89..34a929840 100644
--- a/2006/monge/Makefile
+++ b/2006/monge/Makefile
@@ -134,10 +134,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -167,89 +164,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/night/Makefile b/2006/night/Makefile
index 83ab4165c..c078bc67e 100644
--- a/2006/night/Makefile
+++ b/2006/night/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -157,89 +154,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/sloane/Makefile b/2006/sloane/Makefile
index a9c18c6dd..1cb82b476 100644
--- a/2006/sloane/Makefile
+++ b/2006/sloane/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -160,89 +157,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/stewart/Makefile b/2006/stewart/Makefile
index b9bc454f9..ec065f3f8 100644
--- a/2006/stewart/Makefile
+++ b/2006/stewart/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM *.png *.xbm
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/sykes1/Makefile b/2006/sykes1/Makefile
index 6247c501b..7929793f9 100644
--- a/2006/sykes1/Makefile
+++ b/2006/sykes1/Makefile
@@ -132,10 +132,7 @@ CFLAGS+= -funroll-loops
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -167,90 +164,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM *.gif
${RM} -f ${PROG}.html
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/sykes2/Makefile b/2006/sykes2/Makefile
index dd76431fe..7254bd832 100644
--- a/2006/sykes2/Makefile
+++ b/2006/sykes2/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/toledo1/Makefile b/2006/toledo1/Makefile
index 8b8152668..c6797fb6f 100644
--- a/2006/toledo1/Makefile
+++ b/2006/toledo1/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/toledo2/Makefile b/2006/toledo2/Makefile
index a3e9f8fcf..783919a79 100644
--- a/2006/toledo2/Makefile
+++ b/2006/toledo2/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -164,91 +161,18 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f C
${RM} -rf ${SUBDIR_SET}
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2006/toledo3/Makefile b/2006/toledo3/Makefile
index a7c7c2658..a61846448 100644
--- a/2006/toledo3/Makefile
+++ b/2006/toledo3/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -161,89 +158,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/Makefile b/2011/Makefile
index 6b3cb097c..030c12544 100644
--- a/2011/Makefile
+++ b/2011/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2011/akari/Makefile b/2011/akari/Makefile
index a0516a7d7..6b2fdc6e9 100644
--- a/2011/akari/Makefile
+++ b/2011/akari/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -174,90 +171,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM rot13.c
${RM} -f akari2.c akari3.c akari4.c odd_output.ppm even_output.ppm expanded_and_rot13_output.txt expanded_output.txt
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/blakely/Makefile b/2011/blakely/Makefile
index cf981160f..e98c8eeec 100644
--- a/2011/blakely/Makefile
+++ b/2011/blakely/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/borsanyi/Makefile b/2011/borsanyi/Makefile
index 43b0b8af9..e2aeb5a4a 100644
--- a/2011/borsanyi/Makefile
+++ b/2011/borsanyi/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/dlowe/Makefile b/2011/dlowe/Makefile
index 9c9d8c9c9..9a4623a6b 100644
--- a/2011/dlowe/Makefile
+++ b/2011/dlowe/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,90 +147,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f trained.net
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/eastman/Makefile b/2011/eastman/Makefile
index 9f70244a0..e9352aab5 100644
--- a/2011/eastman/Makefile
+++ b/2011/eastman/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/fredriksson/Makefile b/2011/fredriksson/Makefile
index 211f7d562..713b041cf 100644
--- a/2011/fredriksson/Makefile
+++ b/2011/fredriksson/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM ag.c ag
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/goren/Makefile b/2011/goren/Makefile
index d0c66cf7e..84418826c 100644
--- a/2011/goren/Makefile
+++ b/2011/goren/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/hamaji/Makefile b/2011/hamaji/Makefile
index 7b2b4e2c9..f655b65a3 100644
--- a/2011/hamaji/Makefile
+++ b/2011/hamaji/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/hou/Makefile b/2011/hou/Makefile
index ddc5058af..fea088192 100644
--- a/2011/hou/Makefile
+++ b/2011/hou/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/konno/Makefile b/2011/konno/Makefile
index 5cf285420..3a401fc0b 100644
--- a/2011/konno/Makefile
+++ b/2011/konno/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/richards/Makefile b/2011/richards/Makefile
index 0fd3c6423..e83dad138 100644
--- a/2011/richards/Makefile
+++ b/2011/richards/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/toledo/Makefile b/2011/toledo/Makefile
index 6d8a97f56..a42623625 100644
--- a/2011/toledo/Makefile
+++ b/2011/toledo/Makefile
@@ -142,10 +142,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -170,89 +167,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/vik/Makefile b/2011/vik/Makefile
index dc25459f5..65547f1dd 100644
--- a/2011/vik/Makefile
+++ b/2011/vik/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -148,89 +145,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM *.wav
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2011/zucker/Makefile b/2011/zucker/Makefile
index 2fe4e2da5..883f41bf5 100644
--- a/2011/zucker/Makefile
+++ b/2011/zucker/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM *.png *.ppm
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/Makefile b/2012/Makefile
index e0794b354..165236c6b 100644
--- a/2012/Makefile
+++ b/2012/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2012/blakely/Makefile b/2012/blakely/Makefile
index 24e58fcb1..ca8cd2c28 100644
--- a/2012/blakely/Makefile
+++ b/2012/blakely/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/deckmyn/Makefile b/2012/deckmyn/Makefile
index b410708fd..caba31cb5 100644
--- a/2012/deckmyn/Makefile
+++ b/2012/deckmyn/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/dlowe/Makefile b/2012/dlowe/Makefile
index 4c320997d..7851676ea 100644
--- a/2012/dlowe/Makefile
+++ b/2012/dlowe/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/endoh1/Makefile b/2012/endoh1/Makefile
index b291755ae..e34153637 100644
--- a/2012/endoh1/Makefile
+++ b/2012/endoh1/Makefile
@@ -140,10 +140,7 @@ VISCOSITY=8
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -185,89 +182,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM ${ALT_TARGET}2 ${PROG}_color.alt ${PROG}.alt2
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/endoh2/Makefile b/2012/endoh2/Makefile
index 0cd9c0c68..ebd76a9a8 100644
--- a/2012/endoh2/Makefile
+++ b/2012/endoh2/Makefile
@@ -138,10 +138,7 @@ ALT_C= pi.c 314.c 3141.c 31415.c 314159.c 3141592.c \
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -311,90 +308,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ${ALT_C}
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/grothe/Makefile b/2012/grothe/Makefile
index 3342f2a5e..46d977e03 100644
--- a/2012/grothe/Makefile
+++ b/2012/grothe/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/hamano/Makefile b/2012/hamano/Makefile
index b107205ee..82d771e3a 100644
--- a/2012/hamano/Makefile
+++ b/2012/hamano/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto hint hint.pdf \
+.PHONY: all alt data everything clean clobber
hello hello.pdf
@@ -189,89 +186,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET} hint.pdf hello.pdf hello hello2
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/hou/Makefile b/2012/hou/Makefile
index a9c0cbc50..5cdc85c79 100644
--- a/2012/hou/Makefile
+++ b/2012/hou/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -156,90 +153,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f remarks.htm
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/kang/Makefile b/2012/kang/Makefile
index f2ed28597..a99b11843 100644
--- a/2012/kang/Makefile
+++ b/2012/kang/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/konno/Makefile b/2012/konno/Makefile
index 47de9e7af..8feb95621 100644
--- a/2012/konno/Makefile
+++ b/2012/konno/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/omoikane/Makefile b/2012/omoikane/Makefile
index 6ad746ce1..23433ea1a 100644
--- a/2012/omoikane/Makefile
+++ b/2012/omoikane/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -169,91 +166,18 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -f ${PROG}.c ${PROG}.alt.c ${PROG}.alt2.c
${RM} -rf *.dSYM
${RM} -f output.c key.c data.c regenerated.bin data output output.2
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/tromp/Makefile b/2012/tromp/Makefile
index d03756302..c26606a01 100644
--- a/2012/tromp/Makefile
+++ b/2012/tromp/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET= ${ENTRY}32
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} -m64 -DInt=long -DX=8 $< -o $@
@@ -163,89 +160,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/vik/Makefile b/2012/vik/Makefile
index 3e688aadb..5c8d16556 100644
--- a/2012/vik/Makefile
+++ b/2012/vik/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,91 +147,18 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f encodedimg.png restored.png chocolate-in-ioccc.png ioccc-in-chocolate.png
${RM} -f restored-chocolate.png restored-ioccc.png mmm-chocolate.png
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2012/zeitak/Makefile b/2012/zeitak/Makefile
index 0fb9c9e4d..8546ef218 100644
--- a/2012/zeitak/Makefile
+++ b/2012/zeitak/Makefile
@@ -132,10 +132,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -163,89 +160,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/Makefile b/2013/Makefile
index 79c56e2c3..b7c958fbf 100644
--- a/2013/Makefile
+++ b/2013/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2013/birken/Makefile b/2013/birken/Makefile
index d7d71173a..deecd83ca 100644
--- a/2013/birken/Makefile
+++ b/2013/birken/Makefile
@@ -133,10 +133,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -163,89 +160,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/cable1/Makefile b/2013/cable1/Makefile
index b8868c734..ee018b318 100644
--- a/2013/cable1/Makefile
+++ b/2013/cable1/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -148,89 +145,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/cable2/Makefile b/2013/cable2/Makefile
index 5ef6be42d..3a35b020b 100644
--- a/2013/cable2/Makefile
+++ b/2013/cable2/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/cable3/Makefile b/2013/cable3/Makefile
index ee1884121..28ecb1933 100644
--- a/2013/cable3/Makefile
+++ b/2013/cable3/Makefile
@@ -139,10 +139,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -166,89 +163,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/dlowe/Makefile b/2013/dlowe/Makefile
index f2410caef..2fa31055d 100644
--- a/2013/dlowe/Makefile
+++ b/2013/dlowe/Makefile
@@ -124,10 +124,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/endoh1/Makefile b/2013/endoh1/Makefile
index 81e4ad6c6..e262a2ef5 100644
--- a/2013/endoh1/Makefile
+++ b/2013/endoh1/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "This may take some time to complete:"
@@ -167,89 +164,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/endoh2/Makefile b/2013/endoh2/Makefile
index 7a2b9bb28..3e72e2c76 100644
--- a/2013/endoh2/Makefile
+++ b/2013/endoh2/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -191,90 +188,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f jpeg.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/endoh3/Makefile b/2013/endoh3/Makefile
index 10b0ba825..93056ded4 100644
--- a/2013/endoh3/Makefile
+++ b/2013/endoh3/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM *.wav
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/endoh4/Makefile b/2013/endoh4/Makefile
index 6d4b1759a..3fe774ea8 100644
--- a/2013/endoh4/Makefile
+++ b/2013/endoh4/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/hou/Makefile b/2013/hou/Makefile
index 15efbb15c..12321d69a 100644
--- a/2013/hou/Makefile
+++ b/2013/hou/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -163,89 +160,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM luna.ppm old_default.ppm otherroom.ppm a a.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/mills/Makefile b/2013/mills/Makefile
index 15b03bdc5..756c46027 100644
--- a/2013/mills/Makefile
+++ b/2013/mills/Makefile
@@ -133,10 +133,7 @@ CFLAGS += -ffast-math
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -157,89 +154,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/misaka/Makefile b/2013/misaka/Makefile
index 21a8f3ce7..fd9bc859e 100644
--- a/2013/misaka/Makefile
+++ b/2013/misaka/Makefile
@@ -134,10 +134,7 @@ OTHER_C= misaka2.c misaka3.c misaka4.c misaka5.c \
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -226,58 +223,12 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
@@ -285,33 +236,6 @@ clobber: clean
${RM} -f misaka2.c misaka3.c misaka4.c misaka5.c
${RM} -f misaka6.c misaka7.c misaka8.c misaka9.c
${RM} -f same_as_long_cat.txt long_cat.txt
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/morgan1/Makefile b/2013/morgan1/Makefile
index 2602e3611..89c4ac4d6 100644
--- a/2013/morgan1/Makefile
+++ b/2013/morgan1/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/morgan2/Makefile b/2013/morgan2/Makefile
index 509723d2e..1c96da02d 100644
--- a/2013/morgan2/Makefile
+++ b/2013/morgan2/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2013/robison/Makefile b/2013/robison/Makefile
index b440f9794..08c0dc4b7 100644
--- a/2013/robison/Makefile
+++ b/2013/robison/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/Makefile b/2014/Makefile
index 8dfbd8f7c..9dab41ae8 100644
--- a/2014/Makefile
+++ b/2014/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2014/birken/Makefile b/2014/birken/Makefile
index ffcf060a5..4491a7b0a 100644
--- a/2014/birken/Makefile
+++ b/2014/birken/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -161,89 +158,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/deak/Makefile b/2014/deak/Makefile
index 506d5d314..c4a65afe2 100644
--- a/2014/deak/Makefile
+++ b/2014/deak/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -163,89 +160,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/endoh1/Makefile b/2014/endoh1/Makefile
index 108bd6983..d5d3b34b7 100644
--- a/2014/endoh1/Makefile
+++ b/2014/endoh1/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -168,48 +165,6 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
@@ -217,43 +172,12 @@ diff_alt_orig:
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
${RM} -f main.o
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f main.c treacle.c
${RM} -f alpha.txt ast.txt raw.txt reg.txt seq.txt
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/endoh2/Makefile b/2014/endoh2/Makefile
index 17fa336d3..6982f2590 100644
--- a/2014/endoh2/Makefile
+++ b/2014/endoh2/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET} ioccc ioccc.c hello hello.c
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/maffiodo1/Makefile b/2014/maffiodo1/Makefile
index 24014da26..1f9d03100 100644
--- a/2014/maffiodo1/Makefile
+++ b/2014/maffiodo1/Makefile
@@ -137,10 +137,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -161,89 +158,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/maffiodo2/Makefile b/2014/maffiodo2/Makefile
index 5576301f9..fa5066b3f 100644
--- a/2014/maffiodo2/Makefile
+++ b/2014/maffiodo2/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/morgan/Makefile b/2014/morgan/Makefile
index a1f570674..2ce7395e2 100644
--- a/2014/morgan/Makefile
+++ b/2014/morgan/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,90 +148,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f morgan
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/sinon/Makefile b/2014/sinon/Makefile
index dd7541455..8be850a89 100644
--- a/2014/sinon/Makefile
+++ b/2014/sinon/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET} run run.c
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/skeggs/Makefile b/2014/skeggs/Makefile
index 757d2b70a..94992ed6c 100644
--- a/2014/skeggs/Makefile
+++ b/2014/skeggs/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ} err static_assert t.c thread_local volatile
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/vik/Makefile b/2014/vik/Makefile
index 431aefd0f..81856f4dd 100644
--- a/2014/vik/Makefile
+++ b/2014/vik/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,90 +146,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f *.raw
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2014/wiedijk/Makefile b/2014/wiedijk/Makefile
index 8a194cb72..4484cfc44 100644
--- a/2014/wiedijk/Makefile
+++ b/2014/wiedijk/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, indent $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/Makefile b/2015/Makefile
index 1f196be90..01d80de21 100644
--- a/2015/Makefile
+++ b/2015/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2015/burton/Makefile b/2015/burton/Makefile
index e633a4534..953030a01 100644
--- a/2015/burton/Makefile
+++ b/2015/burton/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET= ${PROG}.alt eprog.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -169,90 +166,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM calc ecalc
${RM} -f ecalc.alt
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/dogon/Makefile b/2015/dogon/Makefile
index 2675bb7f5..d04a32988 100644
--- a/2015/dogon/Makefile
+++ b/2015/dogon/Makefile
@@ -137,10 +137,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -164,89 +161,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/duble/Makefile b/2015/duble/Makefile
index 2f761117f..551ff9225 100644
--- a/2015/duble/Makefile
+++ b/2015/duble/Makefile
@@ -131,10 +131,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -158,89 +155,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/endoh1/Makefile b/2015/endoh1/Makefile
index 02089094b..e5c6598f9 100644
--- a/2015/endoh1/Makefile
+++ b/2015/endoh1/Makefile
@@ -145,10 +145,7 @@ 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 diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: gray-scott-1
${RM} -f $@
@@ -218,89 +215,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/endoh2/Makefile b/2015/endoh2/Makefile
index 9d7e72d19..885a1ea9e 100644
--- a/2015/endoh2/Makefile
+++ b/2015/endoh2/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/endoh3/Makefile b/2015/endoh3/Makefile
index e6f6c6ccd..f882c0441 100644
--- a/2015/endoh3/Makefile
+++ b/2015/endoh3/Makefile
@@ -127,10 +127,7 @@ BACK_TO= mullender.c
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
charon pluto
${PROG}: ${PROG}.c
@@ -156,89 +153,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/endoh4/Makefile b/2015/endoh4/Makefile
index 3b5a3a96b..2443a3fea 100644
--- a/2015/endoh4/Makefile
+++ b/2015/endoh4/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/hou/Makefile b/2015/hou/Makefile
index 567973d19..26d8d49fa 100644
--- a/2015/hou/Makefile
+++ b/2015/hou/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: prebuild
if [ `./prebuild < prog.c | cut -c-7` == 'non-ISO' ]; then \
@@ -156,90 +153,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f prebuild
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/howe/Makefile b/2015/howe/Makefile
index 166a11f1a..82a8139e1 100644
--- a/2015/howe/Makefile
+++ b/2015/howe/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt ${PROG}.alt2
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -166,90 +163,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f makeholes *.tmp
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/mills1/Makefile b/2015/mills1/Makefile
index 01d1c7121..296738b62 100644
--- a/2015/mills1/Makefile
+++ b/2015/mills1/Makefile
@@ -287,10 +287,7 @@ endif
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -311,89 +308,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/mills2/Makefile b/2015/mills2/Makefile
index 864ebb6a2..630bb926e 100644
--- a/2015/mills2/Makefile
+++ b/2015/mills2/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,90 +148,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ioccc.Z test1 test1.Z test2 test2.Z
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/muth/Makefile b/2015/muth/Makefile
index 50ccfb8f8..416eccd13 100644
--- a/2015/muth/Makefile
+++ b/2015/muth/Makefile
@@ -134,10 +134,7 @@ 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 diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -166,89 +163,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/schweikhardt/Makefile b/2015/schweikhardt/Makefile
index 398b547f2..dac6baa19 100644
--- a/2015/schweikhardt/Makefile
+++ b/2015/schweikhardt/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} -UEOF -DEOF=-1 $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2015/yang/Makefile b/2015/yang/Makefile
index 213bb3021..ae4ae83b8 100644
--- a/2015/yang/Makefile
+++ b/2015/yang/Makefile
@@ -134,10 +134,7 @@ MAY_NEED_GPLUSPLUS= g++
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -177,89 +174,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET} output output.c
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/Makefile b/2018/Makefile
index 936014e4d..637c32b0b 100644
--- a/2018/Makefile
+++ b/2018/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2018/algmyr/Makefile b/2018/algmyr/Makefile
index dd6ac81b0..0aa2278c5 100644
--- a/2018/algmyr/Makefile
+++ b/2018/algmyr/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "NOTE: this program will crash if a file specified cannot be opened."
@@ -153,90 +150,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM *.wav
${RM} -f out.raw
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/anderson/Makefile b/2018/anderson/Makefile
index c354980fc..b2e6b5d63 100644
--- a/2018/anderson/Makefile
+++ b/2018/anderson/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/bellard/Makefile b/2018/bellard/Makefile
index 905ee890a..8ee9c8a3b 100644
--- a/2018/bellard/Makefile
+++ b/2018/bellard/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,90 +152,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f lena.ppm small.jpg
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/burton1/Makefile b/2018/burton1/Makefile
index 8189f7293..ed570ce0d 100644
--- a/2018/burton1/Makefile
+++ b/2018/burton1/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET} scripthd
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/burton2/Makefile b/2018/burton2/Makefile
index 9d3983d64..84a55566f 100644
--- a/2018/burton2/Makefile
+++ b/2018/burton2/Makefile
@@ -143,10 +143,7 @@ CFLAGS+= -trigraphs
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c keywords
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -186,90 +183,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f fixed_iocccsize tac keywords iocccsize manpage
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/ciura/Makefile b/2018/ciura/Makefile
index fd7c4bad2..f17e457bc 100644
--- a/2018/ciura/Makefile
+++ b/2018/ciura/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/endoh1/Makefile b/2018/endoh1/Makefile
index 729f9ab9e..037e0b402 100644
--- a/2018/endoh1/Makefile
+++ b/2018/endoh1/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,90 +148,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f output.gif golem.gif smily.gif invisible.gif
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/endoh2/Makefile b/2018/endoh2/Makefile
index 29be0d0b3..0dddc3cd1 100644
--- a/2018/endoh2/Makefile
+++ b/2018/endoh2/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -162,90 +159,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ${PROG}_next.c ${PROG}_next
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/ferguson/Makefile b/2018/ferguson/Makefile
index e021f87be..24093a6c9 100644
--- a/2018/ferguson/Makefile
+++ b/2018/ferguson/Makefile
@@ -143,10 +143,7 @@ ALT_TARGET= ${PROG}.alt weasel.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -179,89 +176,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/giles/Makefile b/2018/giles/Makefile
index ff39f0ebb..2edf5b6ad 100644
--- a/2018/giles/Makefile
+++ b/2018/giles/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/hou/Makefile b/2018/hou/Makefile
index 592d36beb..08eee67f4 100644
--- a/2018/hou/Makefile
+++ b/2018/hou/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,90 +147,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ioccc.html ioccc.json output.html
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/mills/Makefile b/2018/mills/Makefile
index 44ee20080..c307499af 100644
--- a/2018/mills/Makefile
+++ b/2018/mills/Makefile
@@ -136,10 +136,7 @@ V6_TAPE_URL= https://www.tuhs.org/Archive/Distributions/Research/Ken_Wellsch_v6/
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
# Variable to decide if the emulator should save state (default no)
#
@@ -236,91 +233,18 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f builddisk.bsd builddisk.v6 v0 rk05.bsd.fs rk05.v6.fs
${RM} -f empty.fs.bz2 empty.fs v6.fs v6.img.bz2 v0.img v6.tape
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/poikola/Makefile b/2018/poikola/Makefile
index 68eb3c0f3..a22d2b347 100644
--- a/2018/poikola/Makefile
+++ b/2018/poikola/Makefile
@@ -130,10 +130,7 @@ DOCS= poikola.tex
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -158,90 +155,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f poikola.aux poikola.log poikola.pdf poikola.synctex.gz
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/vokes/Makefile b/2018/vokes/Makefile
index c8db296d0..6059ddd57 100644
--- a/2018/vokes/Makefile
+++ b/2018/vokes/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2018/yang/Makefile b/2018/yang/Makefile
index 0fc0d1d96..db17fdb4a 100644
--- a/2018/yang/Makefile
+++ b/2018/yang/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
left: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -267,90 +264,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f generated* msg*
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/Makefile b/2019/Makefile
index 9650a7fa1..6a6282230 100644
--- a/2019/Makefile
+++ b/2019/Makefile
@@ -229,30 +229,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2019/adamovsky/Makefile b/2019/adamovsky/Makefile
index ab7e852d3..714303fed 100644
--- a/2019/adamovsky/Makefile
+++ b/2019/adamovsky/Makefile
@@ -131,10 +131,7 @@ CFLAGS+= -trigraphs
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -168,89 +165,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/burton/Makefile b/2019/burton/Makefile
index cb453d8b8..5818a2c2a 100644
--- a/2019/burton/Makefile
+++ b/2019/burton/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -163,89 +160,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/ciura/Makefile b/2019/ciura/Makefile
index 149a2e62e..102563383 100644
--- a/2019/ciura/Makefile
+++ b/2019/ciura/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/diels-grabsch1/Makefile b/2019/diels-grabsch1/Makefile
index 18d5ab7f2..52d774302 100644
--- a/2019/diels-grabsch1/Makefile
+++ b/2019/diels-grabsch1/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/diels-grabsch2/Makefile b/2019/diels-grabsch2/Makefile
index 1feb45b43..92bf16d03 100644
--- a/2019/diels-grabsch2/Makefile
+++ b/2019/diels-grabsch2/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/dogon/Makefile b/2019/dogon/Makefile
index 54e928a47..7866394fc 100644
--- a/2019/dogon/Makefile
+++ b/2019/dogon/Makefile
@@ -141,10 +141,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -168,89 +165,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/duble/Makefile b/2019/duble/Makefile
index 04bd8dcdc..ef5cf7923 100644
--- a/2019/duble/Makefile
+++ b/2019/duble/Makefile
@@ -136,10 +136,7 @@ OS_SET= Linux FreeBSD Darwin
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}:
${MAKE} `${UNAME}`
@@ -225,90 +222,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f Darwin Darwin.alt FreeBSD FreeBSD.alt Linux Linux.alt
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/endoh/Makefile b/2019/endoh/Makefile
index b74c476da..61b87af7f 100644
--- a/2019/endoh/Makefile
+++ b/2019/endoh/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
# We FORCE the use of -O0 -g even if someone overrides it because this entry is
# a BACKTRACE QUINE and NEEDS debugging symbols.
@@ -158,90 +155,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -rf ${TARGET}.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/giles/Makefile b/2019/giles/Makefile
index 8ec9a590a..9d779a299 100644
--- a/2019/giles/Makefile
+++ b/2019/giles/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/karns/Makefile b/2019/karns/Makefile
index c7a8e9b6d..ce64e013b 100644
--- a/2019/karns/Makefile
+++ b/2019/karns/Makefile
@@ -139,10 +139,7 @@ OPT+= -O0
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
# We FORCE the use of -O0 even if someone overrides it because this entry has
@@ -171,90 +168,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f tbfs
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/lynn/Makefile b/2019/lynn/Makefile
index 1cf8204c6..ac6cd0f40 100644
--- a/2019/lynn/Makefile
+++ b/2019/lynn/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,90 +147,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f fib.c fib
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/mills/Makefile b/2019/mills/Makefile
index 483b42ae2..1bb72af90 100644
--- a/2019/mills/Makefile
+++ b/2019/mills/Makefile
@@ -286,10 +286,7 @@ prog = ${rnn1}
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto \
+.PHONY: all alt data everything clean clobber
text
${TARGET}: ${PROG}.c Makefile ${INPUTS}
@@ -337,58 +334,12 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
cpclean:
${RM} -f cp*_*.*
@@ -398,33 +349,6 @@ clobber: clean cpclean
${RM} -rf *.dSYM
${RM} -f ${INPUTS}
${RM} -f ${OUTPUTS}
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/poikola/Makefile b/2019/poikola/Makefile
index 6dd094d0c..74a31b514 100644
--- a/2019/poikola/Makefile
+++ b/2019/poikola/Makefile
@@ -135,10 +135,7 @@ DOCS= poikola.tex
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
# We disable the optimiser because the author stated that for GCC optimiser
# level 0 gave correct output. With clang [0123s] works which suggests that
@@ -175,90 +172,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f poikola.aux poikola.log poikola.synctex.gz
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2019/yang/Makefile b/2019/yang/Makefile
index 1cc45553f..7987b566a 100644
--- a/2019/yang/Makefile
+++ b/2019/yang/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/Makefile b/2020/Makefile
index 6e7d4e167..54dcd05c7 100644
--- a/2020/Makefile
+++ b/2020/Makefile
@@ -230,30 +230,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -293,6 +269,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################
diff --git a/2020/burton/Makefile b/2020/burton/Makefile
index d2d9d542f..e99109fa5 100644
--- a/2020/burton/Makefile
+++ b/2020/burton/Makefile
@@ -139,10 +139,7 @@ _S=0
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
@echo "NOTE: this entry will crash on no arg specified."
@@ -174,90 +171,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f ${PROG}_be ${PROG}_le
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/carlini/Makefile b/2020/carlini/Makefile
index 09d36053f..a62385290 100644
--- a/2020/carlini/Makefile
+++ b/2020/carlini/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -149,89 +146,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/endoh1/Makefile b/2020/endoh1/Makefile
index 73fdb024b..1f9bef14d 100644
--- a/2020/endoh1/Makefile
+++ b/2020/endoh1/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/endoh2/Makefile b/2020/endoh2/Makefile
index 547f9b583..c18547d4f 100644
--- a/2020/endoh2/Makefile
+++ b/2020/endoh2/Makefile
@@ -130,10 +130,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -154,89 +151,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/endoh3/Makefile b/2020/endoh3/Makefile
index 1c17f7ab6..587115768 100644
--- a/2020/endoh3/Makefile
+++ b/2020/endoh3/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt clock.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -167,90 +164,17 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
${RM} -f clock.c clock clock.alt.c
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/ferguson1/Makefile b/2020/ferguson1/Makefile
index 91979e530..cf2cd3c0d 100644
--- a/2020/ferguson1/Makefile
+++ b/2020/ferguson1/Makefile
@@ -135,10 +135,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -185,89 +182,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/ferguson2/Makefile b/2020/ferguson2/Makefile
index 1f02ae948..fe86da047 100644
--- a/2020/ferguson2/Makefile
+++ b/2020/ferguson2/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -161,89 +158,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM decrypted.html conf input output output2
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/giles/Makefile b/2020/giles/Makefile
index 872d9edc8..b90cb29fa 100644
--- a/2020/giles/Makefile
+++ b/2020/giles/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -150,89 +147,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/kurdyukov1/Makefile b/2020/kurdyukov1/Makefile
index 6ea4e4837..bec885931 100644
--- a/2020/kurdyukov1/Makefile
+++ b/2020/kurdyukov1/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -152,89 +149,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/kurdyukov2/Makefile b/2020/kurdyukov2/Makefile
index aaf41546d..234a92240 100644
--- a/2020/kurdyukov2/Makefile
+++ b/2020/kurdyukov2/Makefile
@@ -128,10 +128,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS} ${LIBJPEG}
@@ -160,89 +157,16 @@ data: ${DATA}
everything: all alt
-
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM *.gif *.ppm out*.jpg gif/
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/kurdyukov3/Makefile b/2020/kurdyukov3/Makefile
index 07ced58b1..de54c2c00 100644
--- a/2020/kurdyukov3/Makefile
+++ b/2020/kurdyukov3/Makefile
@@ -125,10 +125,7 @@ ALT_TARGET= ${PROG}.alt ${PROG}.extra
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -155,89 +152,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/kurdyukov4/Makefile b/2020/kurdyukov4/Makefile
index ac5cf81ef..6a57aa52f 100644
--- a/2020/kurdyukov4/Makefile
+++ b/2020/kurdyukov4/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -157,89 +154,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/otterness/Makefile b/2020/otterness/Makefile
index df7c68d73..6849c9abe 100644
--- a/2020/otterness/Makefile
+++ b/2020/otterness/Makefile
@@ -126,10 +126,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -153,89 +150,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/tsoj/Makefile b/2020/tsoj/Makefile
index b3a5c079e..89766efce 100644
--- a/2020/tsoj/Makefile
+++ b/2020/tsoj/Makefile
@@ -127,10 +127,7 @@ ALT_TARGET= ${PROG}.alt
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -151,89 +148,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/2020/yang/Makefile b/2020/yang/Makefile
index 9edbb1399..653c95325 100644
--- a/2020/yang/Makefile
+++ b/2020/yang/Makefile
@@ -129,10 +129,7 @@ ALT_TARGET=
all: data ${TARGET}
@${TRUE}
-.PHONY: all alt data everything diff_orig_prog diff_prog_orig \
- diff_alt_prog diff_prog_alt diff_orig_alt diff_alt_orig \
- clean clobber install love haste waste maker easter_egg \
- sandwich supernova deep_magic magic charon pluto
+.PHONY: all alt data everything clean clobber
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
@@ -157,89 +154,16 @@ everything: all alt
@${TRUE}
-#####################
-# make a difference #
-#####################
-#
-# diff orig source and source
-#
-diff_orig_prog: ${PROG}.orig.c ${PROG}.c
- @-${DIFF} -u ${PROG}.orig.c ${PROG}.c
-
-# diff source and orig source
-#
-diff_prog_orig: ${PROG}.c ${PROG}.orig.c
- @-${DIFF} -u ${PROG}.c ${PROG}.orig.c
-
-# diff alt source and source
-#
-diff_alt_prog: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.c; \
- fi
-
-# diff source and alt source
-#
-diff_prog_alt: ${PROG}.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.c ${PROG}.alt.c; \
- fi
-
-# diff orig and alt
-#
-diff_orig_alt: ${PROG}.orig.c
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.orig.c ${PROG}.alt.c; \
- fi
-
-# diff alt and orig
-diff_alt_orig:
- @-if [[ -e ${PROG}.alt.c ]]; then \
- ${DIFF} -u ${PROG}.alt.c ${PROG}.orig.c; \
- fi
-
-
###############
# utility rules
###############
#
clean:
${RM} -f ${OBJ} ${ALT_OBJ}
- @-if [ -f indent.c ]; then \
- echo ${RM} -f indent.c; \
- ${RM} -f indent.c; \
- fi
clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -rf *.dSYM decoded code.c encoded.c wrongcoded
- @-if [ -e sandwich ]; then \
- ${RM} -f sandwich; \
- echo 'ate sandwich'; \
- fi
-
-install:
- @echo "Dr. Spock says that is not logical!"
- @${TRUE}
-
-# you may be able to misunderstand the source by reading indent.c
-#
-indent.c: ${PROG}.c
- @if which "${GINDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${GINDENT} < $< > $@"; \
- ${GINDENT} < $< > $@; \
- elif which "${INDENT}" >/dev/null 2>&1; then \
- echo ${RM} -f $@; \
- ${RM} -f $@; \
- echo "${INDENT} < $< > $@"; \
- ${INDENT} < $< > $@; \
- else \
- echo "no indent tool found, ident $< yourself, sorry"; \
- echo "exit 17"; \
- exit 17; \
- fi
######################################
diff --git a/Makefile b/Makefile
index 2197a6889..3f9a7d628 100644
--- a/Makefile
+++ b/Makefile
@@ -260,30 +260,6 @@ clobber:
done
@echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
-install:
- @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
- @-for i in ${YEARS}; do \
- if [[ -f $$i/Makefile ]]; then \
- echo "cd $$i; make $@"; \
- (cd $$i; make $@); \
- else \
- echo "Warning: $$i/Makefile not found, skipping $$i for $@ processing" 1>&2 ; \
- fi; \
- done
- @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
-
-indent.c:
- @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
- @-for i in ${YEARS}; do \
- if [[ -f $$i/Makefile ]]; then \
- echo "cd $$i; make $@"; \
- (cd $$i; make $@); \
- else \
- echo "Warning: $$i/Makefile not found, skipping $$i for $@ processing" 1>&2 ; \
- fi; \
- done
- @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
-
#################################
# IOCCC website maintenance rulz
@@ -851,6 +827,63 @@ genpath_top:
@echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
+ @-for i in ${YEARS}; do \
+ if [[ -f $$i/Makefile ]]; then \
+ echo "cd $$i; make $@"; \
+ (cd $$i; make $@); \
+ else \
+ echo "Warning: $$i/Makefile not found, skipping $$i for $@ processing" 1>&2 ; \
+ fi; \
+ done
+ @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
+
+indent_clean: clean
+ @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
+ @-for i in ${YEARS}; do \
+ if [[ -f $$i/Makefile ]]; then \
+ echo "cd $$i; make $@"; \
+ (cd $$i; make $@); \
+ else \
+ echo "Warning: $$i/Makefile not found, skipping $$i for $@ processing" 1>&2 ; \
+ fi; \
+ done
+ @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
+ @-for i in ${YEARS}; do \
+ if [[ -f $$i/Makefile ]]; then \
+ echo "cd $$i; make $@"; \
+ (cd $$i; make $@); \
+ else \
+ echo "Warning: $$i/Makefile not found, skipping $$i for $@ processing" 1>&2 ; \
+ fi; \
+ done
+ @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
+
+install:
+ @echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
+ @-for i in ${YEARS}; do \
+ if [[ -f $$i/Makefile ]]; then \
+ echo "cd $$i; make $@"; \
+ (cd $$i; make $@); \
+ else \
+ echo "Warning: $$i/Makefile not found, skipping $$i for $@ processing" 1>&2 ; \
+ fi; \
+ done
+ @echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
+
+
#############################################################
# NOTE: 'Don't Panic' if you don't understand the stuff below
#############################################################
diff --git a/faq.html b/faq.html
index df33c1e60..b0ce35365 100644
--- a/faq.html
+++ b/faq.html
@@ -3385,6 +3385,12 @@ where it’s quite easy to see the differences).
very easily. To do that cd 1991/dds and then do:
make diff_alt_prog
and you’ll see a single line changed and very simply.
+NOTE: The above mentioned make rules are located in the 1337.mk
+include Makefile via the optional include directive line:
+ -include 1337.mk ../1337.mk ../../1337.mk
+The 1337.mk file must exist in the current
+directory, or under the directory above, or under the directory 2 levels
+above in order for these rules to work.
Tip: if you have colordiff installed it’s a lot easier to see the differences
To use these rules but provide a different diff, for instance colordiff,
just do:
@@ -3395,6 +3401,7 @@ the files as described above.
See the
FAQ on “original source code”
for more information.
+Jump to: top
FAQ 4.3 - Why do author remarks sometimes not match the source and/or why are there other inconsistencies with the original entry?
diff --git a/faq.md b/faq.md
index 501bf509d..df8e735d1 100644
--- a/faq.md
+++ b/faq.md
@@ -472,7 +472,7 @@ For example:
cp -f prog $@
clean:
- rm -f prog.o
+ rm -f prog.o
clobber: clean
rm -f desired_name
@@ -3940,6 +3940,17 @@ very easily. To do that `cd 1991/dds` and then do:
and you'll see a single line changed and very simply.
+**NOTE**: The above mentioned `make` rules are located in the [1337.mk](%%REPO_URL%%/1337.mk)
+include Makefile via the optional include directive line:
+
+```
+ -include 1337.mk ../1337.mk ../../1337.mk
+```
+
+The [1337.mk](%%REPO_URL%%/1337.mk) file must exist in the current
+directory, or under the directory above, or under the directory 2 levels
+above in order for these rules to work.
+
#### Tip: if you have `colordiff` installed it's a lot easier to see the differences
@@ -3958,6 +3969,8 @@ See the
FAQ on "[original source code](#original_source_code)"
for more information.
+Jump to: [top](#)
+
### FAQ 4.3 - Why do author remarks sometimes not match the source and/or why are there other inconsistencies with the original entry?
diff --git a/template/Makefile.year b/template/Makefile.year
index 6946acd56..c154966bb 100644
--- a/template/Makefile.year
+++ b/template/Makefile.year
@@ -228,30 +228,6 @@ clobber:
done
@echo '=-=-= ${YEAR} complete make $@ =-=-='
-install:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
-indent.c:
- @echo '=-=-= ${YEAR} begin make $@ =-=-='
- @echo
- @for i in ${ENTRIES}; do \
- echo "=-= start ${YEAR}/$$i =-="; \
- echo "(cd $$i && ${MAKE} $@)"; \
- (cd $$i && ${MAKE} $@); \
- echo "=-= end ${YEAR}/$$i =-="; \
- echo; \
- done
- @echo '=-=-= ${YEAR} complete make $@ =-=-='
-
genpath:
@echo '=-=-= IOCCC begin make $@ =-=-='
@${RM} -f .tmp.genpath
@@ -292,6 +268,63 @@ new_entry:
${FMT} | ${SED} -e '2,$$s/^/\t/' -e 's/$$/ \\/' -e '$$s/ \\//'
+########################
+# extended utility rules
+########################
+
+.PHONY: indent_clean indent_clobber
+
+# you may be able to misunderstand the source by reading indent.c
+#
+indent.c:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clean: clean
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+indent_clobber: indent_clean clobber
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+install:
+ @echo '=-=-= ${YEAR} begin make $@ =-=-='
+ @echo
+ @for i in ${ENTRIES}; do \
+ echo "=-= start ${YEAR}/$$i =-="; \
+ echo "(cd $$i && ${MAKE} $@)"; \
+ (cd $$i && ${MAKE} $@); \
+ echo "=-= end ${YEAR}/$$i =-="; \
+ echo; \
+ done
+ @echo '=-=-= ${YEAR} complete make $@ =-=-='
+
+
##################
# 1337 hacker rulz
##################