File: rules

package info (click to toggle)
minimap2 2.27%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,352 kB
  • sloc: ansic: 8,743; javascript: 3,737; makefile: 149; python: 84; sh: 42; perl: 29
file content (49 lines) | stat: -rwxr-xr-x 1,100 bytes parent folder | download
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
42
43
44
45
46
47
48
49
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/architecture.mk

RANLIB ?= ranlib

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	dh_auto_clean --buildsystem=pybuild
	cd tex && make clean

ifeq (,$(filter $(DEB_HOST_ARCH_CPU),amd64 i386))
build_vars = -f Makefile.simde
export DEB_CFLAGS_MAINT_APPEND += -fopenmp-simd -O3 -DSIMDE_ENABLE_OPENMP
endif
# ifneq (,$(filter $(DEB_HOST_ARCH_CPU),arm64))
# build_vars += aarch64=1
# endif

override_dh_auto_build:
	dh_auto_build -- $(build_vars)
	cd tex && make
	dh_auto_build --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	debian/test_script
	rm test.sam
endif

override_dh_auto_install:
	dh_auto_install
	dh_auto_install --buildsystem=pybuild

override_dh_compress:
	dh_compress --exclude=.pdf

# No idea why, but the stipping ruined the index of the .a file as spotted by nanopolish
# as its reverse dependency
override_dh_strip:
	dh_strip
	$(RANLIB) $(CURDIR)/debian/libminimap2-dev/usr/lib/libminimap2.a

override_dh_installman:
	dh_installman --language=C