File: rules

package info (click to toggle)
libkarma 0.1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 676 kB
  • sloc: ansic: 6,224; sh: 328; makefile: 229; cs: 170
file content (44 lines) | stat: -rwxr-xr-x 1,477 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

override_dh_auto_build:
	dh_auto_build -- MCS=$(shell which mono-csc)

override_dh_auto_install:
	dh_auto_install -- MCS=$(shell which mono-csc) \
            INSTALL_DIR='$$(INSTALL) -d -m 0755' \
            INSTALL_FILE='$$(INSTALL) -m 0644' \
            INSTALL_PROGRAM='$$(INSTALL) -m 0755' \
            INSTALL_SCRIPT='$$(INSTALL) -m 0755' \

%:
	dh $@ --no-parallel

# dh_clideps expects to see dh_makeshlibs called before it, but dh_makeshlibs
# is never called when building only arch-indep packages. So we force the issue
# by making a phony shlibs.local file that dh_clideps will accept, if no others
# exist. See #806629 for the specific case of libkarma and #830416 for the bug
# in dh_clideps.
override_dh_clideps:
	if ! grep -q . debian/*/DEBIAN/shlibs; then echo libkarma 0 libkarma0 > debian/shlibs.local; fi
	dh_clideps
	rm -f debian/shlibs.local

# Upstream incldued some Makefile.orig in the tarball; exclude those to
# avoid fighting with git.
override_dh_clean:
	dh_clean -X Makefile.orig

override_dh_missing:
	dh_missing --fail-missing