aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile.extr
blob: 9d4f3610250bd6e9234e75c012aa2a78ac554c48 (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
35
36
37
38
39
all: manual src man-html

install-deps:
	emacs --batch --load ./res/install-deps.el

%.man: %.org
	emacs --batch --file $< --load ./res/publish.el --funcall org-man-export-to-man

%.html: %.org
	emacs --batch --file $< --load ./res/publish.el --funcall org-html-export-to-html

manual:
	mkdir -p manual
	emacs --batch --file documentation.org --load ./res/publish.el --funcall org-texinfo-export-to-texinfo
	makeinfo --html --number-sections --no-split \
        --css-ref "https://www.gnu.org/software/emacs/manual.css" \
        vericert.texi -o ./manual/index.html
	cp -r images ./manual/.

man-html: man.html
	mkdir -p man
	cp man.html ./man/vericert.1.html

vericert.1: man.man
	cp $< $@

src:
	$(MAKE) -C .. doc
	cp -r ../html src

upload:
	tar caf docs.tar.xz manual man src
	rsync docs.tar.xz "zk@leika.ymhg.org:~"

.PHONY: all upload manual man src install-deps man-html

clean:
	rm -rf manual man src
	rm -f docs.tar.xz