File: rules

package info (click to toggle)
libobjcryst 2022.1.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,720 kB
  • sloc: cpp: 46,163; python: 108; makefile: 19; sh: 5
file content (29 lines) | stat: -rwxr-xr-x 949 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
#!/usr/bin/make -f

# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

# Multiarch
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)


%:
	dh $@

override_dh_auto_install:
	mkdir -p debian/objcryst/usr/
	LIBRARY_PATH="/usr/lib/${DEB_HOST_MULTIARCH}/" scons -Q build=debug prefix=. with_shared_cctbx=1 install
	iconv -f ISO-8859-1 -t UTF-8 debian/objcryst/usr/include/ObjCryst/ObjCryst/UnitCell.h > UnitCell.h
	mv UnitCell.h debian/objcryst/usr/include/ObjCryst/ObjCryst/UnitCell.h
	dh_installdirs
	dh_install
	dh_auto_install
	$(RM) -r debian/objcryst/usr/newmat/ debian/objcryst/usr/cctbx/cctbx/
	$(RM) -r debian/objcryst/usr/ObjCryst/ debian/objcryst/usr/SConscript*
	$(RM) -r debian/libobjcryst0/debian

override_dh_auto_clean:
	dh_auto_clean
	$(RM) -r .sconsign.dblite debian/objcryst sconscript.local site_scons/gitarchive.cfg
	$(RM) examples/objcryst_test
	find . -name "*.pyc" -delete