File: rules

package info (click to toggle)
e-antic 0.1.8%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,336 kB
  • sloc: ansic: 12,244; cpp: 2,084; makefile: 260; sh: 3
file content (27 lines) | stat: -rwxr-xr-x 599 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
#!/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)

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)

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