add orig_prog_diff and alt_prog_diff rules to Makefiles

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

No files matched your search

+27 -3
View File
@@ -51,9 +51,9 @@ all:
done
@echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
.PHONY: all alt data everything clean clobber install \
love haste waste maker easter_egg sandwich \
supernova deep_magic magic charon pluto
.PHONY: all alt data everything orig_prog_diff alt_prog_diff \
clean clobber install love haste waste maker easter_egg \
sandwich supernova deep_magic magic charon pluto
# alternative executable
#
@@ -91,6 +91,30 @@ everything:
done
@echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
# diff orig source and source
#
orig_prog_diff:
@echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
@-for i in [12][0-9][0-9][0-9]; do \
if [ -f $$i/Makefile ]; then \
echo "cd $$i; make $@"; \
(cd $$i; make $@); \
fi; \
done
@echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
# diff alt source and source
#
alt_prog_diff:
@echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
@-for i in [12][0-9][0-9][0-9]; do \
if [ -f $$i/Makefile ]; then \
echo "cd $$i; make $@"; \
(cd $$i; make $@); \
fi; \
done
@echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
###############
# utility rules