File: rules

package info (click to toggle)
v-sim 3.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,188 kB
  • sloc: ansic: 115,451; f90: 19,861; python: 2,120; makefile: 1,002; xml: 719; cpp: 688; sh: 23
file content (51 lines) | stat: -rwxr-xr-x 1,492 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
50
51
#!/usr/bin/make -f

DEB_CONFIGURE_USER_FLAGS := --with-etsf-file-format --with-openbabel --with-xsf --with-cube --with-archives --enable-introspection --disable-static --docdir=\$${prefix}/share/doc/v-sim-doc

export PYTHON=python3

export DEB_CFLAGS_MAINT_APPEND = -std=gnu17

#install/v-sim-doc::
#	rm -rf debian/tmp/usr/share/gtk-doc

binary-install/python3-v-sim::
	dh_python3 -ppython3-v-sim --no-guessing-deps

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh  $@

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CONFIGURE_USER_FLAGS)

# test suite has some failures but its not clear if this has ever passed for the
# Debian package since it was never run before.  Thus ignore errors for the moment
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test || true
endif

override_dh_auto_install:
	dh_auto_install -- DESTDIR=$(CURDIR)/debian/tmp/

# Avoid postinst-has-useless-call-to-ldconfig
override_dh_makeshlibs:
	dh_makeshlibs -p v-sim-plugins -n
	dh_makeshlibs --remaining-packages

override_dh_installdocs:
	# README is a symlink which makes no sense inside the final packages
	cp README debian/tmp
	cp AUTHORS debian/tmp
	dh_installdocs

# Avoid compressing files that are required as clear texts by V_Sim.
override_dh_compress:
	dh_compress -Xlicence.fr.txt -Xlicence.en.txt -XChangeLog.fr -XChangeLog.en

override_dh_missing:
	find debian/tmp -name "*.la" -delete
	find debian/tmp -type d -name __pycache__ | xargs rm -rf
	dh_missing