File: rules

package info (click to toggle)
dwgsim 0.1.14-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,656 kB
  • sloc: ansic: 3,540; python: 334; perl: 243; xml: 194; makefile: 40; sh: 34
file content (27 lines) | stat: -rwxr-xr-x 642 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# FIXME: workaround build failure with gcc 14 until upstream until
# upstream resolves [1].
#
# [1]: https://github.com/nh13/DWGSIM/issues/88
export DEB_CFLAGS_MAINT_APPEND = -Wno-error=incompatible-pointer-types

%:
	dh $@

override_dh_auto_build:
	sed -i 's/occour/occur/' src/dwgsim_opt.c
	sed -i 's/occour/occur/' debian/dwgsim.1
	dh_auto_build

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	ln -s /usr/share/doc/samtools/examples samtools
	dh_auto_test
endif