File: rules

package info (click to toggle)
cpptraj 5.1.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 138,900 kB
  • sloc: cpp: 145,621; ansic: 34,635; sh: 11,365; f90: 971; makefile: 770; awk: 242
file content (27 lines) | stat: -rwxr-xr-x 824 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
#!/usr/bin/make -f

CONFIGURE_OPTIONS = --with-arpack=/usr/lib/$(DEB_HOST_MULTIARCH) --with-fftw3=/usr/lib/$(DEB_HOST_MULTIARCH) --with-readline=/usr/lib/$(DEB_HOST_MULTIARCH)

ifeq ($(shell test -e /usr/include/OpenMM.h && echo YES),YES)
	CONFIGURE_OPTIONS += --with-openmm=/usr/lib/$(DEB_HOST_MULTIARCH)
endif

%:
	dh $@

override_dh_auto_configure:
	./configure gnu $(CONFIGURE_OPTIONS)

override_dh_auto_test:
	dh_auto_test -- check unittest
	$(MAKE) -C test summary

override_dh_auto_clean:
	touch config.h external.config.h
	dh_auto_clean
	rm -rf bin

# Manpage generation is supposed to be run manually after the binary
# package has been built and installed on the system.
debian/cpptraj.1:
	help2man cpptraj --no-discard-stderr --no-info --name 'fast, parallelized molecular dynamics trajectory data analysis' > $@