File: rules

package info (click to toggle)
snacc 1.3.1-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,132 kB
  • sloc: ansic: 33,001; cpp: 5,163; yacc: 2,217; sh: 2,146; makefile: 839; lex: 517; sed: 4
file content (29 lines) | stat: -rwxr-xr-x 699 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
#!/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

%:
	dh $@ --no-parallel

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

override_dh_auto_build:
	dh_auto_build
	(cd debian && \
		xsltproc --nonet --novalid $(DB2MAN) berdecode.dbk && \
		xsltproc --nonet --novalid $(DB2MAN) snacc-config.dbk)

override_dh_auto_clean:
	dh_auto_clean

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

override_dh_missing:
	dh_missing --list-missing