File: rules

package info (click to toggle)
ugrep 7.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 19,008 kB
  • sloc: cpp: 69,034; ansic: 9,848; sh: 1,897; makefile: 312; java: 6; xml: 6
file content (32 lines) | stat: -rwxr-xr-x 664 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
28
29
30
31
32
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

CONFIGURE_FLAGS += --disable-avx

ifeq ($(DEB_HOST_ARCH),i386)
CONFIGURE_FLAGS += --disable-sse2
endif

ifeq ($(DEB_HOST_ARCH),armhf)
CONFIGURE_FLAGS += --disable-neon
endif

%:
	dh $@

override_dh_clean:
	rm -rf bin/win* bin/ug bin/ugrep bin/ugrep-indexer
	dh_clean

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

override_dh_auto_test:
	if [ "$(DEB_HOST_ARCH)" != "mips64el" ]; then dh_auto_test; fi

licensecheck:
	licensecheck --deb-machine -r * \
		> debian/copyright_newhints
	cmp debian/copyright_hints debian/copyright_newhints \
		&& rm debian/copyright_newhints