File: rules

package info (click to toggle)
psicode 3.4.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch, trixie
  • size: 46,416 kB
  • ctags: 18,563
  • sloc: cpp: 291,425; ansic: 12,788; fortran: 10,489; perl: 3,206; sh: 2,702; makefile: 2,205; ruby: 2,178; yacc: 110; lex: 53
file content (44 lines) | stat: -rwxr-xr-x 1,383 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
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

export SCRATCH="$(CURDIR)/tmp-scratch"

%:
	dh $@ --with autotools_dev --parallel

override_dh_auto_clean:
	dh_auto_clean
	-(cd tests; $(MAKE) quicktestsclean)
	-(cd doc/userman; $(MAKE) realclean)
	find $(CURDIR) \( -name Makefile -o -name MakeVars -o -name MakeRules -o -name "*_config.h" \) -delete
	(cd doc; $(RM) doxygen/doxygen.cfg macros.tex progman/svn.eps userman/prsty.bst)
	(cd tests; $(RM) runtest.pl psi_start/psi_start.pl uhf-stab/uhf-stab.pl rhf-stab/rhf-stab.pl rohf-stab/rohf-stab.pl)
	(cd include; $(RM) psiconfig.h chkpt_params.h)
	$(RM) lib/*.a a.out config.*
	$(RM) -r tmp-scratch

override_dh_auto_configure:
	dh_auto_configure -- --bindir=/usr/lib/psi --docdir=/usr/share/doc/psi3

override_dh_auto_build:
	(cd doc/userman; $(MAKE))
	dh_auto_build

override_dh_auto_install:
	dh_auto_install
	$(RM) -r debian/psi3/usr/share/psi/ruby
	mv debian/tmp/usr/lib/psi/psi3 debian/psi3/usr/bin/
	for i in scf-opt scf-freq scf-polar rhf-stab 		\
	rhf-oeprop cc1 mp2-opt mp2-direct-sp mp2-scs 		\
	dboc-rhf1 mp2r12-sp1 rhf-lindep1 cisd-sp casscf-sp; 	\
		do cp tests/$$i/input.dat 			\
		debian/psi3/usr/share/doc/psi3/examples/$$i.dat;\
	done
	cp debian/psirc.example debian/psi3/usr/share/doc/psi3

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	-(cd tests; $(MAKE) quicktests)
endif