File: rules

package info (click to toggle)
yorick-ynfft 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 224 kB
  • ctags: 137
  • sloc: ansic: 814; sh: 165; makefile: 92; sed: 4
file content (30 lines) | stat: -rwxr-xr-x 718 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
28
29
30
#!/usr/bin/make -f

DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
DEB_YORICK=/usr/bin/yorick

%:
	dh $@

override_dh_auto_configure:
	./configure --yorick=$(DEB_YORICK)

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

override_dh_auto_install-arch:
	dh_installyorick

override_dh_auto_test:
# tests take too long on the mips buildd
ifeq (,$(filter $(DEB_HOST_ARCH), mips))
	$(MAKE) tests
endif

override_dh_auto_clean:
	./configure --deplibs="" --cflags="" --ldflags="" --yorick=$(DEB_YORICK)
	$(MAKE) Y_MAKEDIR=/usr/lib/yorick Y_EXE=$(DEB_YORICK) distclean