build before test
This commit is contained in:
parent
9f98f54fc8
commit
8b0117af46
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue