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 <dacs.git@brilhante.top>
This commit is contained in:
Daniel Santos 2022-03-12 18:10:42 +00:00
parent f1cd830c40
commit 5d7cabc420
1 changed files with 7 additions and 1 deletions

View File

@ -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