I want stub Markdown files for each (as yet undocumented) function. The functions have docstrings but they are in ReST format. Using the `wrod.py` script I can fins all the functions that don't yet have doc files and write their docstrings into a ReST template. Then I use Make and Pandoc to convert the ReST files to Markdown.
11 lines
140 B
Makefile
11 lines
140 B
Makefile
rsts = $(wildcard *.rst)
|
|
mds = $(patsubst %.rst,%.md,$(rsts))
|
|
|
|
all: $(mds)
|
|
|
|
clean:
|
|
$(RM) -v $(mds)
|
|
|
|
$(mds): %.md : %.rst
|
|
pandoc $< -o $@
|