File: rules

package info (click to toggle)
kissplice 2.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 16,756 kB
  • sloc: cpp: 8,812; python: 1,607; perl: 389; sh: 73; makefile: 17
file content (35 lines) | stat: -rwxr-xr-x 1,071 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

#
#   cc1plus: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
#export DEB_CPPFLAGS_MAINT_APPEND = -Wno-unused-result -Wno-parentheses -Wno-error=format-security

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Force texlive to respect SOURCE_DATE_EPOCH for reproducibility of pdf user guide
export FORCE_SOURCE_DATE=1

include /usr/share/dpkg/default.mk

%:
	dh $@ --with python3

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_INSTALL_LIBEXECDIR=lib/

override_dh_compress:
	dh_compress --exclude=.pdf

override_dh_install:
	rm -rf debian/$(DEB_SOURCE)/usr/README.md debian/$(DEB_SOURCE)/build debian/$(DEB_SOURCE)/builds
	rm -f debian/$(DEB_SOURCE)/usr/lib/kissplice/bcalm
	mkdir -p debian/$(DEB_SOURCE)/usr/share/$(DEB_SOURCE)
	mv debian/$(DEB_SOURCE)/usr/bin/kissplice debian/$(DEB_SOURCE)/usr/share/$(DEB_SOURCE)/kissplice.py

override_dh_auto_clean:
	dh_auto_clean
	find . -name __pycache__/ -type d | xargs rm -rf