summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8b5ac020e95ed8d23a1ff6a2373b8372abdaeae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SRC = $(wildcard *.asciidoc)

HTML = $(SRC:.asciidoc=.html)
PDF = $(SRC:.asciidoc=.pdf)

all: html pdf

html: $(HTML)

pdf: $(PDF)

%.html: %.asciidoc $(wildcard *.asciidoci)
	asciidoc $<

%.pdf: %.asciidoc $(wildcard *.asciidoci)
	a2x $< -L

clean:
	$(RM) $(HTML) $(PDF)

.PHONY: all clean html pdf