Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
4 #DH_VERBOSE = 1
5
6 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
7 DPKG_EXPORT_BUILDFLAGS = 1
8 include /usr/share/dpkg/default.mk
9
10 # see FEATURE AREAS in dpkg-buildflags(1)
11 #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
12
13 # see ENVIRONMENT in dpkg-buildflags(1)
14 # package maintainers to append CFLAGS
15 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
16 # package maintainers to append LDFLAGS
17 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
18
19 # main packaging script based on dh7 syntax
20 %:
21 dh $@
22
23 # inject version number at beginning of dist.ini file
24 # this is required because upstream uses Git::NextVersion plugin
25 override_dh_dzil_build:
26 perl -p -g -i -E 'say "version = $(DEB_VERSION_UPSTREAM)";' dist.ini
27 dh_dzil_build
28
29 # cleanup the version injected above
30 override_dh_clean:
31 perl -n -i -E 'print unless /^version =/;' dist.ini
32 dh_clean