File: rules

package info (click to toggle)
libsx 2.08-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,732 kB
  • sloc: ansic: 8,713; sh: 8,603; makefile: 63
file content (25 lines) | stat: -rwxr-xr-x 605 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
#!/usr/bin/make -f



# TO set SHELL in Makefiles that are shipped; needed for reproducibility
export CONFIG_SHELL=/bin/sh

# The magic debhelper rule:
%:
	dh $@ --no-parallel

include /usr/share/dpkg/architecture.mk
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)

CFLAGS := `dpkg-buildflags --get CFLAGS`
CFLAGS += `dpkg-buildflags --get CPPFLAGS`

override_dh_installexamples:
	$(MAKE) clean
	dh_installexamples -Xlibsx.h
	# Remove example Makefile for reproducible builds
	rm -vf debian/libsx-dev/usr/share/doc/libsx-dev/examples/freq/Makefile

override_dh_auto_test:
	@echo Disabled to avoid building examples