From 5d7cabc4208096685d8585c6bda1ddde488bbceb Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Sat, 12 Mar 2022 18:10:42 +0000 Subject: [PATCH] add to Makefile sun<->earth rule * add sun to earth and vice-versa rule, without adding it to the all rule * also add earth<->sun to 'clean' Makefile rule Signed-off-by: Daniel Santos --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ae8a326..3242b02 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,12 @@ decimal-sun: $(DEP) sun-decimal: $(DEP) $(CC) $(CFLAGS) -DFROM_NUMERICALS=\"123456789\" -DTO_NUMERICALS=\"0123456789\" -DTO_FIRST_NUMBER_VOID -DTO_INFINITE_BASE -o $@ $^ +sun-earth: $(DEP) + $(CC) $(CFLAGS) -DFROM_NUMERICALS=\"123456789\" -DTO_NUMERICALS=\"12345\" $@ $^ + +earth-sun: $(DEP) + $(CC) $(CFLAGS) -DFROM_NUMERICALS=\"12345\" -DTO_NUMERICALS=\"123456789\" -o $@ $^ + decimal-lori: $(DEP) $(CC) $(CFLAGS) -DFROM_NUMERICALS=\"0123456789\" -DFROM_UNITS_ON_THE_END -DFROM_FIRST_NUMBER_VOID -DFROM_INFINITE_BASE -DTO_NUMERICALS=\"123456789@\" -DTO_UNITS_ON_THE_END -o $@ $^ @@ -58,7 +64,7 @@ uninfinity: $(DEP) .PHONY: clean clean: - \rm -f *-decimal decimal-* d-n* *1-d uninfinity + \rm -f *-decimal decimal-* d-n* *1-d uninfinity earth-sun sun-earth .PHONY: run run: decimal-earth