Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 DPKG_EXPORT_BUILDFLAGS = 1
6 include /usr/share/dpkg/default.mk
7
8 # The custom build system doesn't support CPPFLAGS
9 CFLAGS:=$(CPPFLAGS) $(CFLAGS)
10 CXXFLAGS:=$(CPPFLAGS) $(CXXFLAGS) -std=c++03
11
12 # The trailing slashes are very important to the build system
13 subdirectories:= $(filter-out debian/, $(shell ls -d */))
14
15 # Reference for unusable modules:
16 # https://lists.debian.org/debian-med/2015/05/msg00075.html
17 unusable:= tapper/ trie/
18
19 # Note: Parallel build is not reliable
20 %:
21 dh $@
22
23 override_dh_auto_build:
24 # The Makefile apparently doesn't use regular LDFLAGS.
25 # It defines CLDFLAGS and CXXLDFLAGS as empty strings, so let's
26 # use them here.
27 $(MAKE) install \
28 CLDFLAGS="$(LDFLAGS)" \
29 CXXLDFLAGS="$(LDFLAGS)"
30 # WITHOUT="$(unusable)"
31 mv installdir/bin/atac.pl installdir/bin/atac
32 mv -v installdir/lib/halignmodule.so installdir/lib/halign.so
33 mv -v installdir/lib/localAlignerInterfacemodule.so installdir/lib/localAlignerInterface.so
34
35 override_dh_auto_clean:
36 $(MAKE) real-clean
37 rm -rf installdir
38
39 execute_after_dh_install:
40 for perlscript in `grep -l '#!/usr/bin/env \+perl' debian/*/usr/bin/*` `grep -l '#!/usr/bin/env \+perl' debian/*/usr/lib/atac/bin/*` ; do \
41 sed -i '1s+#!/usr/bin/env perl+#!/usr/bin/perl+' $${perlscript} ; \
42 done
43
44 override_dh_python3:
45 dh_python3 --no-ext-rename
46
47 get-orig-source:
48 DEB_VERSION_UPSTREAM=$(DEB_VERSION_UPSTREAM) debian/get-orig-source