File: rules

package info (click to toggle)
accel-config 3.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,196 kB
  • sloc: ansic: 16,474; sh: 728; makefile: 185
file content (51 lines) | stat: -rwxr-xr-x 1,154 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
45
46
47
48
49
50
51
#!/usr/bin/make -f

export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- --prefix=/usr --sysconfdir=/etc --enable-test=yes

override_dh_clean:
	#removing files generated by autogen.sh
	rm -fr build-aux/
	rm -fr m4/*
	rm -fr Documentation/Makefile.in
	rm -fr Makefile.in
	rm -fr aclocal.m4
	rm -fr autom4te.cache
	rm -fr config.h.in
	rm -fr configure
	rm -fr accfg/lib/Makefile.in
	rm -fr accfg/Makefile.in
	rm -fr test/Makefile.in
	# created by tests and not cleaned up after
	rm -fr version.m4
	rm -fr Documentation/accfg/asciidoc.conf
	rm -fr Documentation/accfg/Makefile.in
	rm -fr config.log
	dh_clean

override_dh_install:
	find debian/tmp -name '*.la' -print -delete
	dh_install

override_dh_fixperms:
	dh_fixperms -X2g2q_user_1.conf -X2g2q_user_2.conf

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

#override_dh_missing:
	dh_missing --fail-missing