1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| | # -*- Makefile -*-
dir := doc/rst2man
prerst2man := python $(dir)/prerst2man.py $(dir)/.. $(dir)
MANSRC := $(dir)/notmuch.1 $(dir)/notmuch-search.1 $(dir)/notmuch-search-terms.7
%.1 : %.rst
rst2man $< > $@
%.7: %.rst
rst2man $< > $@
# preprocessed source files suitable for rst2man
RST2MANSRC := $(dir)/notmuch.rst $(dir)/notmuch-search.rst $(dir)/notmuch-search-terms.rst
# actual source files
RSTSRC := $(patsubst ${dir}/%,$(dir)/../%,${RST2MANSRC})
RSTMANSRC := $(patsubst %.rst,%.1,${RST2MANSRC})
rst2man: ${MANSRC}
${RST2MANSRC}: ${RSTSRC}
$(prerst2man)
CLEAN := ${CLEAN} ${RST2MANSRC} ${MANSRC}
|