Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- mode: makefile; coding: utf-8 -*-
3 # Copyright © 2015-2019 IOhannes m zmölnig <[email protected]>
4 # Description: Main Debian packaging script for libambix
5 #
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation; either version 2, or (at
9 # your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 # Uncomment this to turn on verbose mode.
20 #export DH_VERBOSE=1
21 #export VERBOSE=1
22
23 DEB_BUILD_MAINT_OPTIONS = hardening=+all
24
25 H2MANPAGES=ambix-info.1 ambix-interleave.1 ambix-deinterleave.1 ambix-jplay.1 ambix-jrecord.1
26
27 %:
28 dh $@
29
30 override_dh_install:
31 dh_install -X "*.la"
32
33 execute_before_dh_installman: $(H2MANPAGES)
34
35 execute_after_dh_fixperms:
36 find debian/*/usr/ -name "*.pd_linux" -exec chmod -x {} +
37
38 execute_after_dh_clean:
39 rm -f $(H2MANPAGES)
40 find samples/pd -xtype l -delete
41
42 %.1: utils/%
43 cp debian/manpages/$@ $@
44 -help2man \
45 --libtool \
46 --no-discard-stderr \
47 --no-info \
48 --name "AMBIsonics eXchange utility" \
49 --help-option=-h \
50 --version-string=-V \
51 --output $@ \
52 $^