CofeehousePy/nlpfr/nltk/test/Makefile

29 lines
412 B
Makefile

.SUFFIXES: .doctest .errs .html
TESTS = $(wildcard *.doctest)
ERRS := $(TESTS:.doctest=.errs)
HTML = $(TESTS:.doctest=.html) # $(IPYNB:.ipynb=.html)
IPYNB = $(wildcard *.ipynb)
.doctest.errs:
python ./runtests.py $< > $@
.doctest.html:
rst2html.py $< > $@
%.html: %.ipynb
ipython nbconvert $<
all: $(ERRS)
html: $(HTML)
install_html:
cp $(HTML) ../../../nltk.github.com/howto
clean:
rm -f *.errs