fix redundancies in Makefile

This commit is contained in:
Simon Cruanes 2014-11-18 17:53:45 +01:00
parent 1eb8cc62a0
commit 50b62b4802

View file

@ -11,19 +11,17 @@ NAME=msat
LIB=$(addprefix $(NAME), .cma .cmxa .cmxs) LIB=$(addprefix $(NAME), .cma .cmxa .cmxs)
all:$(LIB) $(TEST) all: lib test
$(LIB): lib:
$(COMP) $(FLAGS) $(DIRS) $(LIB) $(COMP) $(FLAGS) $(DIRS) $(LIB)
doc: doc:
$(COMP) $(FLAGS) $(DIRS) $(DOC) $(COMP) $(FLAGS) $(DIRS) $(DOC)
test: $(TEST) test:
./tests/run
$(TEST): $(LIB)
$(COMP) $(FLAGS) $(DIRS) $(TEST) $(COMP) $(FLAGS) $(DIRS) $(TEST)
./tests/run
bench: $(TEST) bench: $(TEST)
cd bench && $(MAKE) cd bench && $(MAKE)