File: rules

package info (click to toggle)
ebib 2.51.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,460 kB
  • sloc: lisp: 8,839; sh: 80; makefile: 30
file content (44 lines) | stat: -rwxr-xr-x 1,281 bytes parent folder | download | duplicates (3)
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
40
41
42
43
44
#!/usr/bin/make -f

%:
	dh $@ --with elpa

# We rebuild the texinfo & HTML manuals to ensure they are
# rebuildable.  Note that most of the other files in the docs/ subdir
# are the ebib website, which we don't install
override_dh_auto_build:
	test -f ebib.info.orig || mv ebib.info ebib.info.orig

	pandoc --read=markdown+gfm_auto_identifiers \
	       --write=texinfo \
	       --output=ebib.texi \
	       --include-before-body=manual/before-body.texi \
	       --standalone \
	       --table-of-contents \
	       manual/ebib.text

	makeinfo ebib.texi

	test -f docs/ebib-manual.html.orig \
		|| mv docs/ebib-manual.html docs/ebib-manual.html.orig

	pandoc --read=markdown \
	       --write=html \
	       --standalone \
	       --table-of-contents \
	       --css=manual.css \
	       --include-in-header=manual/header-include.html \
	       --output=docs/ebib-manual.html \
	       manual/ebib.text

override_dh_auto_clean:
	rm -f ebib.texi
	test -f ebib.info.orig && mv ebib.info.orig ebib.info || true
	test -f docs/ebib-manual.html.orig \
		&& mv docs/ebib-manual.html.orig docs/ebib-manual.html \
		|| true

# the content of d/upstream/changelog is manually extracted from
# manual/ebib.text
override_dh_installchangelogs:
	dh_installchangelogs debian/upstream/changelog