blob: 68f372d0c5cc7e6f65e0325266fa826dce6b1ab3 (
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
|
TITLE = Backups with Obnam
AUTHOR = Lars Wirzenius (liw@liw.fi)
VERSION = Version $(shell git describe)
sources = 000.mdwn $(shell ls *.mdwn | grep -vFx 000.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)
000.mdwn:
(echo "% $(TITLE)"; echo "% $(AUTHOR)"; echo "% $(VERSION)") \
> 000.mdwn
clean:
rm -f $(outputs) 000.mdwn
publish: $(outputs)
rsync $(outputs) code.liw.fi:code.liw.fi/obnam/manual/.
|