File: rules

package info (click to toggle)
cain 1.10%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 29,848 kB
  • sloc: cpp: 49,612; python: 14,988; xml: 11,654; ansic: 3,644; makefile: 129; sh: 2
file content (40 lines) | stat: -rwxr-xr-x 1,233 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

SRC_TMP=$(CURDIR)/SRC_TMP
debtmp := $(CURDIR)/debian/tmp

include /usr/share/dpkg/default.mk
BUILD_DATE := $(shell dpkg-parsechangelog | grep Date: | cut -d' ' -f2-7)

export TZ=UTC
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python2

override_dh_auto_clean:
	dh_auto_clean
	rm -rf solvers

override_dh_auto_build:
	mkdir solvers
	dh_auto_build

override_dh_install-indep:
	dh_install
	rm -rf debian/$(DEB_SOURCE)/usr/share/cain/help/* debian/$(DEB_SOURCE)/usr/share/cain/gui/help.htm*
	find help -type d | xargs chmod 755
	find help -type f | xargs chmod 644
	find help | xargs touch --no-dereference --date='$(BUILD_DATE)'
	cd help && (find . -type f -not \( -name "*.htb" -or -name "*.htd" \) -print0 | \
          LC_ALL=C sort -z | \
          xargs -0 zip ../debian/$(DEB_SOURCE)/usr/share/cain/help/cain.htb -X -r -q)
	touch --no-dereference --date='$(BUILD_DATE)' debian/$(DEB_SOURCE)/usr/share/cain/help/cain.htb
	if [ -d debian/$(DEB_SOURCE)/usr/share/cain/ ] ; then \
	    find debian/$(DEB_SOURCE)/usr/share/cain/ -type f -executable -exec chmod 644 {} + ; \
	fi

override_dh_auto_test:
	echo "no tests implemented"