about summary refs log tree commit homepage
path: root/Documentation/GNUmakefile
blob: 37411e5a4c233992d0c1759011a1e08208566ff7 (plain)
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
29
30
31
32
33
34
all::

PANDOC = pandoc
PANDOC_OPTS = -f markdown --email-obfuscation=none
pandoc = $(PANDOC) $(PANDOC_OPTS)

ones =
ones += dtas-console
ones += dtas-ctl
ones += dtas-enq
ones += dtas-msinkctl
ones += dtas-player
ones += dtas-xdelay
ones += dtas-sinkedit
ones += dtas-sourceedit

man1 := $(addsuffix .1, $(ones))
man7 := $(addsuffix .7,dtas-player_protocol)

all:: man

man: $(man1) $(man7)

install-man: man
	mkdir -p ../man/man1
	install -m 644 $(man1) ../man/man1

%.1: %.1.txt
	$(pandoc) -s -t man < $< > $@+ && mv $@+ $@
%.7: %.7.txt
	$(pandoc) -s -t man < $< > $@+ && mv $@+ $@

clean::
	$(RM) $(man1)