[go: up one dir, main page]

File: rules

package info (click to toggle)
id3lib3.8.3 3.8.3-16.3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,636 kB
  • sloc: cpp: 12,364; sh: 9,186; ansic: 7,240; makefile: 355; php: 325
file content (41 lines) | stat: -rwxr-xr-x 871 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
#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@

# regenerate auto* stuff
override_dh_auto_configure:
	libtoolize -fc
	aclocal
	autoconf
	automake --add-missing --copy
	# Enable hardened build flags through dpkg-buildflags
	dh_auto_configure -- $(shell dpkg-buildflags --export=configure)

# remove prebuilt config.{sub,guess}
override_dh_clean:
	dh_clean
	rm -f config.sub config.guess
	rm -rf doc/api/

# clean out dependency_libs in the la-file
override_dh_install:
	sed -i 's/^dependency_libs/#dependency_libs/g' \
		debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libid3.la
	dh_install

# only build the docs for binary and binary-indep builds, not for binary-arch
# in order not to waste buildd resources

docs:
	cd doc && doxygen
	rm -f doc/api/jquery.js

binary-indep: docs
	dh binary-indep

binary: docs
	dh binary