summaryrefslogtreecommitdiff
path: root/manual/Makefile
blob: d635ebebf2cc0cd25967091404be5e3e384d16d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
sources = $(wildcard *.mdwn)
outputs = manual.pdf manual.html

all: $(outputs)

manual.pdf: Makefile $(sources)
	pandoc --smart --toc --chapters --number-sections \
		-o manual.pdf $(sources)

manual.html: Makefile $(sources)
	pandoc  -H manual.css --smart --toc --chapters --number-sections \
		--standalone \
                --self-contained \
		-o manual.html $(sources)

clean:
	rm -f $(outputs)

publish: $(outputs)
	rsync $(outputs) code.liw.fi:code.liw.fi/obnam/manual/.