Commit efc19d80 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Added 'make check' target

parent df8bee83
......@@ -2,7 +2,7 @@ LD := clang
LDFLAGS := -nostartfiles
BFILES := $(patsubst %.b,%,$(wildcard *.b))
.PHONY: clean
.PHONY: check clean
.PRECIOUS: $(addsuffix .ll,$(BFILES)) $(addsuffix -opt.ll,$(BFILES))
bf: bf.ml
......@@ -24,5 +24,8 @@ bf: bf.ml
%.ll: %.b bf
./bf < $< > $@
check: hello-opt
./$<
clean:
rm -f bf *.cmi *.cmx *.ll *.bc *.o $(BFILES) $(addsuffix -opt,$(BFILES))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment