File: rules

package info (click to toggle)
phyx 0.999%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 9,316 kB
  • sloc: cpp: 21,107; fortran: 7,932; python: 735; makefile: 401; sh: 79
file content (21 lines) | stat: -rwxr-xr-x 426 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
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

%:
	dh $@ --sourcedirectory=src

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd src && python run_tests.py
endif

override_dh_auto_install:
	mkdir -p $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
	dh_auto_install -- prefix=$(CURDIR)/debian/$(DEB_SOURCE)/usr

override_dh_compress:
	dh_compress --exclude=.pdf