File: rules

package info (click to toggle)
phonopy 2.38.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,844 kB
  • sloc: python: 41,752; xml: 12,078; ansic: 3,220; cpp: 525; sh: 213; makefile: 20
file content (24 lines) | stat: -rwxr-xr-x 612 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME = phonopy

export PYBUILD_TEST_ARGS = -k 'not test_symfc_cutoff'

%:
	dh $@ --buildsystem pybuild

# Manpages should be regenerated after importing, building and installing
# each new upstream release. This has to be done manually, as opposed to
# build time, due to possibly cross-building.

SCRIPTS  = $(wildcard phonopy/scripts/*.py)
MANPAGES = $(subst _,-,$(SCRIPTS:phonopy/scripts/%.py=debian/man/%.1))

.PHONY: manpages

manpages: $(MANPAGES)

debian/man/%.1:
	help2man $* --version-string $(DEB_VERSION_UPSTREAM) --no-info > $@