File: rules

package info (click to toggle)
e-antic 2.1.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,444 kB
  • sloc: cpp: 18,073; ansic: 6,415; python: 1,034; makefile: 428; sh: 36
file content (34 lines) | stat: -rwxr-xr-x 741 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
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export ACLOCAL_PATH=/usr/share/gnulib/m4

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_HOST_MULTIARCH

ifneq (,$(filter $(DEB_HOST_MULTIARCH), mipsel-linux-gnu))
DEB_PKG_EANTIC_OPENMP=no
else
DEB_PKG_EANTIC_OPENMP=yes
endif

default:
	@uscan --no-conf --dehs --report || true

%:
	dh $@ --builddirectory=_BUILD

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-openmp=$(DEB_PKG_EANTIC_OPENMP) \
		--with-version-script \
		--with-benchmark \
		--without-byexample \
		--without-pyeantic \
		--without-doc

override_dh_auto_install:
	dh_auto_install
	find debian/tmp/ -name "*.la" -delete