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 compilo
interpret:
build:
@cd ../.. && dune build --display=quiet
interpret: build
@for f in $(wildcard *.$(TARGET)); do \
printf "%s: " $$f; \
./$(FLAP) -s $(TARGET) -d true -r true $$f; \
printf "\n"; \
done
compilo:
compilo: build
@for f in $(wildcard *.$(TARGET)); do \
printf "%s: " $$f; \
./$(FLAP) -t elf empty.retrolix $$f && \
./$(FLAP) -t elf $$f && \
./$${f%.*}.elf; \
printf "\n"; \
done