Commit 100c27ad authored by Mathieu Giraud's avatar Mathieu Giraud

Makefile(s): separe 'cleancoverage' from 'clean'

We want to be able to test coverage on different rules, without
deleting previous coverage files.
parent 377b4051
......@@ -126,6 +126,7 @@ clean:
cleanall: clean
make -C data $^
make -C germline $^
make -C $(VIDJIL_ALGO_SRC) cleancoverage
.PHONY: all test should clean cleanall distrib data germline unit_coverage should_coverage coverage
......
......@@ -86,10 +86,15 @@ $(EXEC): %: %.o
clean:
make -C core $@
make -C lib $@
rm -f *.o *.gcda *.gcno *.gcov cgi/*.o
rm -f *.o cgi/*.o
cd $(BINDIR) ; rm -f $(EXEC)
make -C tests $@
cleancoverage: clean
rm -f *.gcda *.gcno *.gcov
make -C core cleancoverage
make -C lib cleancoverage
forcedep:
g++ $(CXXFLAGS) -M $(MAINCORE) > dep.mk
make -C core forcedep
......
......@@ -13,7 +13,10 @@ $(LIBCORE): $(OBJCORE)
ar rc $@ $^
clean:
rm -f $(OBJCORE) $(LIBCORE) *.gcda *.gcno *.gcov
rm -f $(OBJCORE) $(LIBCORE)
cleancoverage:
rm -f *.gcda *.gcno *.gcov
forcedep:
g++ $(CXXFLAGS) -M $(SRCCORE) > dep.mk
......
......@@ -13,7 +13,10 @@ $(LIBCORE): $(OBJCORE)
ar rc $@ $^
clean:
rm -f $(OBJCORE) $(LIBCORE) *.gcda *.gcno *.gcov
rm -f $(OBJCORE) $(LIBCORE)
cleancoverage:
rm -f *.gcda *.gcno *.gcov
forcedep:
g++ $(CXXFLAGS) -M $(SRCCORE) > dep.mk
......
......@@ -62,9 +62,12 @@ core:
$(CC) -o $@ $(INCLUDE) -c $< $(CXXFLAGS)
clean:
rm -f *.o $(EXEC) *.tap *.log *.gcda *.gcno *.gcov should-vdj-tests/*.tap should-vdj-tests/*.log
rm -f *.o $(EXEC) *.tap *.log should-vdj-tests/*.tap should-vdj-tests/*.log
rm -rf out/
cleancoverage:
rm -f *.gcda *.gcno *.gcov
forcedep:
g++ $(INCLUDE) -M $(SRC) > dep.mk
......
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