File: rules

package info (click to toggle)
yorick-av 0.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 140 kB
  • sloc: ansic: 344; makefile: 48; sh: 8
file content (30 lines) | stat: -rwxr-xr-x 719 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
#!/usr/bin/make -f

# Don't run tests which require an X11 display. The value of this
# environment variable has no importance.
export YAV_NODISPLAY := nodisplay

DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_build:
	$(MAKE) COPT_DEFAULT="" \
		Y_CFLAGS="$(CFLAGS) $(CPPFLAGS)" \
		Y_LDFLAGS="$(LDFLAGS)"

override_dh_auto_install-arch:
	dh_installyorick

override_dh_auto_clean:
	$(MAKE) Y_MAKEDIR=/usr/lib/yorick Y_EXE=/usr/bin/yorick distclean

override_dh_auto_test:
	dh_testdir
ifeq (,$(filter nocheck, $(DEB_BUILD_OPTIONS)))
# Untill 747976 is closed                                                       
ifeq (,$(filter $(DEB_HOST_ARCH), kfreebsd-i386))
	yorick -batch check.i
endif
endif