Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Aim for the top, adapt if anything should break on the buildds.
4 DEB_BUILD_MAINT_OPTIONS= hardening=+all
5 export DEB_BUILD_MAINT_OPTIONS
6
7 DEB_CPPFLAGS_MAINT_APPEND= -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700
8 export DEB_CPPFLAGS_MAINT_APPEND
9
10 DEB_CFLAGS_MAINT_APPEND=-pipe -Wall -W -ansi -pedantic -Wbad-function-cast \
11 -Wcast-align -Wcast-qual -Wchar-subscripts -Winline \
12 -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
13 -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings \
14 -Wno-stringop-truncation
15 export DEB_CFLAGS_MAINT_APPEND
16
17 ifneq (,$(filter werror,$(DEB_BUILD_OPTIONS)))
18 config_werror= --enable-werror
19 else
20 config_werror=
21 endif
22
23 include /usr/share/dpkg/default.mk
24
25 include /usr/share/debhelper/dh_package_notes/package-notes.mk
26
27 override_dh_auto_configure:
28 dh_auto_configure -- $(config_werror)
29
30 override_dh_installchangelogs:
31 dh_installchangelogs -X CHANGELOG
32 install -m 644 CHANGELOG debian/id3tool/usr/share/doc/id3tool/NEWS
33
34 override_dh_auto_test:
35 env TEST_ID3=./id3tool prove debian/tests/t
36
37 %:
38 dh $@