build before test

This commit is contained in:
Mylloon 2023-12-31 20:03:10 +01:00
parent 9f98f54fc8
commit 8b0117af46
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -5,17 +5,20 @@ main:
@echo make interpret @echo make interpret
@echo make compilo @echo make compilo
interpret: build:
@cd ../.. && dune build --display=quiet
interpret: build
@for f in $(wildcard *.$(TARGET)); do \ @for f in $(wildcard *.$(TARGET)); do \
printf "%s: " $$f; \ printf "%s: " $$f; \
./$(FLAP) -s $(TARGET) -d true -r true $$f; \ ./$(FLAP) -s $(TARGET) -d true -r true $$f; \
printf "\n"; \ printf "\n"; \
done done
compilo: compilo: build
@for f in $(wildcard *.$(TARGET)); do \ @for f in $(wildcard *.$(TARGET)); do \
printf "%s: " $$f; \ printf "%s: " $$f; \
./$(FLAP) -t elf empty.retrolix $$f && \ ./$(FLAP) -t elf $$f && \
./$${f%.*}.elf; \ ./$${f%.*}.elf; \
printf "\n"; \ printf "\n"; \
done done