File: rules

package info (click to toggle)
vcdimager 2.0.1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,364 kB
  • sloc: ansic: 17,982; sh: 4,828; xml: 317; makefile: 282; cpp: 58
file content (49 lines) | stat: -rwxr-xr-x 1,281 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

export DEB_CFLAGS_MAINT_PREPEND=-Wall
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

LIBCDEV=$(shell dpkg-awk 'Provides:libc-dev' -- Package | sed -ne 's/^Package:[[:space:]]*//p' | head -1) | libc-dev
BACKUP_FILES = frontends/cli/cdxa2mpeg.1 \
	       frontends/cli/vcd-info.1 \
	       frontends/cli/vcdimager.1 \
	       frontends/xml/vcdxbuild.1 \
	       frontends/xml/vcdxgen.1 \
	       frontends/xml/vcdxminfo.1 \
	       frontends/xml/vcdxrip.1

%:
	dh $@

# Rebuild man from source
override_dh_auto_configure:
	set -e; for file in $(BACKUP_FILES); do \
	    cp $$file $$file.orig; \
	done

	dh_auto_configure -- --enable-maintainer-mode

# The tests crashes when run in parallel
override_dh_auto_test:
	dh_auto_test --no-parallel

override_dh_missing:
	rm -f debian/tmp/usr/lib/*/libvcdinfo.la
	dh_missing --list-missing

override_dh_makeshlibs:
	dh_makeshlibs -a -N libvcdinfo0
	dh_makeshlibs -p libvcdinfo0 -V 'libvcdinfo0 (>> 0.7.24)'

override_dh_shlibdeps:
	dh_shlibdeps -a -L libvcdinfo0 -l debian/libvcdinfo0/usr/lib

override_dh_gencontrol:
	dh_gencontrol -a -- -Vlibcdev="$(LIBCDEV)"

execute_after_dh_auto_clean:
	set -e; for file in $(BACKUP_FILES); do \
	    if [ -r $$file.orig ]; then \
	        mv $$file.orig $$file; \
	    fi \
	done