I'm using ocamlbuild
in makefile
to build my code and want to recompile when there is any code change. But make
returns with error message: make: Nothing to be done for `all'.
My makefile
code:
all: test1 test2
test1:
ocamlbuild $(INCLUDES) $(FLAGS) $(TEST1_BYTE)
mv $(TEST1_BYTE) test1.out
test2:
ocamlbuild $(INCLUDES) $(FLAGS) $(TEST2_BYTE)
mv $(TEST2_BYTE) test2.out
clean:
rm -f test1.out test2.out
rm -rf _build
I expect make
will do the recompilation instead of make clean; make
. It only works with make clean; make
now.