File: rules

package info (click to toggle)
cod-tools 2.4+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 114,616 kB
  • sloc: perl: 53,588; sh: 24,039; ansic: 6,329; xml: 1,982; yacc: 1,112; makefile: 713; python: 158; sql: 73
file content (33 lines) | stat: -rwxr-xr-x 966 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
#!/usr/bin/make -f
# -*- makefile -*-

export PYBUILD_NAME = pycodcif
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3 --no-parallel

override_dh_auto_install:
	dh_auto_install -- PREFIX=$(CURDIR)/debian/tmp/usr
	dh_auto_install -O--buildsystem=pybuild -- --dir src/components/pycodcif

override_dh_install-arch:
	for TPL in debian/templates/*; \
	do sed -e "s@##DEB_HOST_MULTIARCH##@$(DEB_HOST_MULTIARCH)@g" \
		$${TPL} > debian/$$(basename $${TPL}); \
	done
	rm $(CURDIR)/debian/tmp/usr/bin/cif_parse_old_star doc/man/cif_parse_old_star.1
	dh_install
	rm -rf $(CURDIR)/debian/cod-tools/usr/share/perl5/COD/CIF/Parser
	rm $(CURDIR)/debian/cod-tools/usr/share/perl5/COD/Precision.pm
	rm $(CURDIR)/debian/cod-tools/usr/share/perl5/COD/UserMessage.pm

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG

override_dh_clean:
	dh_clean
	for TPL in debian/templates/*; \
	do rm -f debian/$$(basename $${TPL}); \
	done
	rm -rf .pybuild