File: rules

package info (click to toggle)
esnacc 1.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 4,344 kB
  • ctags: 4,549
  • sloc: ansic: 42,339; cpp: 13,880; yacc: 2,682; tcl: 1,587; lex: 688; sh: 573; makefile: 109
file content (34 lines) | stat: -rwxr-xr-x 967 bytes parent folder | download
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
#!/usr/bin/make -f

# This has to be exported to make some magic below work.
export DH_OPTIONS

# hack to fix #746913, -O2 somehow breaks the build
export DEB_CFLAGS_MAINT_APPEND = -O0

export HOME = $(CURDIR)/debian/tmp/tmp
export XDG_RUNTIME_DIR = $(CURDIR)/debian/tmp/tmp

%:
	dh $@ --with autoreconf

DB2MAN = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

override_dh_auto_build:
	dh_auto_build
	(cd $(CURDIR)/debian && \
		xsltproc --nonet --novalid $(DB2MAN) berdecode.dbk)
	mkdir -p $(CURDIR)/debian/tmp/tmp
	(cd $(CURDIR)/doc && unzip eSNACCManuals.zip && libreoffice --headless --convert-to pdf Esnacc.doc)

override_dh_auto_clean:
	dh_auto_clean
	rm -f $(CURDIR)/doc/Esnacc.doc $(CURDIR)/doc/EsnaccOriginalMaterial.doc $(CURDIR)/doc/*.pdf

override_dh_install:
	dh_install
	rm -rf $(CURDIR)/debian/esnacc/usr/share/doc/snacc-doc/ \
	$(CURDIR)/debian/esnacc/usr/share/man/man1/snacced.1*

override_dh_compress:
	dh_compress -X.pdf