Fix a docstring.
[docutils.git] / prest / t / Makefile
blob5dd8b1353fb8104061d2d44313ae644bd3a050fb
1 # This makefile is used only for generating a code coverage database for
2 # the regression suite and should not be needed for ordinary users of the
3 # Text::Restructured package
5 SOURCES := $(shell find ../blib -type f -and -not -name '.*')
6 PERL := $(shell perl -I../blib/lib -e 'use Text::Restructured::PrestConfig; print "$$Text::Restructured::PrestConfig::SAFE_PERL\n"')
7 COVER = $(shell which cover)
9 peek:
10 @echo $(PERL)
12 ifdef COVER
13 cover_db/runs: $(SOURCES)
14 -rm -rf cover_db/runs cover_db/structure
15 env COVER=1 MAKELEVEL= make -C .. test
17 .PHONY: cover cover_only
19 cover: cover_db/runs
20 $(PERL) $(COVER)
22 cover_only:
23 $(PERL) $(COVER)
25 endif