summaryrefslogtreecommitdiff
path: root/manual/Makefile
blob: f3804f9f41e6af3ed510cbaff83ea603a6dd1610 (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
TITLE = Backups with Obnam
AUTHOR = Lars Wirzenius (liw@liw.fi)
VERSION = Version $(shell git describe)

en_sources = en/000.mdwn $(shell ls en/*.mdwn | grep -vFx en/000.mdwn)
outputs = obnam-manual.en.pdf obnam-manual.en.html

all: $(outputs)

obnam-manual.en.pdf: Makefile $(en_sources)
	pandoc --smart --toc --chapters --number-sections \
		-o $@ $(en_sources)

obnam-manual.en.html: Makefile $(en_sources) ../obnam.css
	pandoc  -H ../obnam.css --smart --toc --chapters --number-sections \
		--standalone \
                --self-contained \
                -V geometry:lettersize \
		-o $@ $(en_sources)

en/000.mdwn:
	(echo "% $(TITLE)"; echo "% $(AUTHOR)"; echo "% $(VERSION)") \
		> $@

clean:
	rm -f $(outputs) en/000.mdwn